Skip to content

Instantly share code, notes, and snippets.

@kumards
kumards / WildcardOriginCorsPolicy.cs
Created March 13, 2018 20:10
Wildcard Origin Cors Policy
public class WildcardOriginCorsPolicy : Attribute, ICorsPolicyProvider
{
private readonly string _origins;
private readonly string _headers;
private readonly string _methods;
//private readonly CorsPolicy _policy;
//
// Summary:
// Initializes a new instance of the WildcardOriginCorsPolicy class.