Combination.DynamicCors 1.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Combination.DynamicCors --version 1.1.1
NuGet\Install-Package Combination.DynamicCors -Version 1.1.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Combination.DynamicCors" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Combination.DynamicCors --version 1.1.1
#r "nuget: Combination.DynamicCors, 1.1.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Combination.DynamicCors as a Cake Addin
#addin nuget:?package=Combination.DynamicCors&version=1.1.1

// Install Combination.DynamicCors as a Cake Tool
#tool nuget:?package=Combination.DynamicCors&version=1.1.1

Combination.AspNetCore.DynamicCors

Dynamic CORS middleware based on Regular Expressions for ASP.NET Core

Usage

applicationBuilder.UseDynamicCors(factory => factory.WithPatterns(@".+\.mydomain\.(com|net|org)").WithMethods("POST"));

The middleware will dynamically look at each request and generate a correct CORS origin header if the origin matches, otherwise no headers is sent (The Vary header is set to prevent caching of invalid repsonses). This allows for flexibility in dealing with complex Origin policies, while not leaking the full set of origins to the requester.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.7 601 11/17/2022
1.1.6 316 11/17/2022
1.1.5 2,211 8/30/2021
1.1.5-pre1 218 8/30/2021
1.1.4 313 8/27/2021
1.1.3 309 2/16/2021
1.1.2 3,203 2/15/2021
1.1.1 604 10/30/2020
1.1.0 420 10/30/2020
1.0.0 414 10/29/2020