Class CorsConfigurator.PolicyOptions
CORS policy options.
public class CorsConfigurator.PolicyOptions
- Inheritance
-
CorsConfigurator.PolicyOptions
- Inherited Members
- Extension Methods
Constructors
PolicyOptions()
Default ctor.
public PolicyOptions()
Properties
AllowAnyHeader
True to allow any header.
public bool AllowAnyHeader { get; set; }
Property Value
AllowAnyMethod
True to allow any method.
public bool AllowAnyMethod { get; set; }
Property Value
AllowAnyOrigin
True to allow any origin.
public bool AllowAnyOrigin { get; set; }
Property Value
AllowCredentials
True to allow access to any credentials.
public bool AllowCredentials { get; set; }
Property Value
AllowWildcardSubdomain
True enable wildcard subdomain match with
public bool AllowWildcardSubdomain { get; set; }
Property Value
AllowedExposedHeaders
List of exposed header(s)
public string[]? AllowedExposedHeaders { get; set; }
Property Value
- string[]
AllowedHeaders
List of allowed header(s)
public string[]? AllowedHeaders { get; set; }
Property Value
- string[]
AllowedMethods
List of allowed method(s)
public string[]? AllowedMethods { get; set; }
Property Value
- string[]
AllowedOrigins
List of allowed origin(s).
public string[]? AllowedOrigins { get; set; }
Property Value
- string[]
PreflightMaxAge
Max. time in seconds a preflight request can be cached.
public int PreflightMaxAge { get; set; }
Property Value
Methods
Configure(CorsPolicyBuilder)
Configure CORS policy
public CorsPolicyBuilder Configure(CorsPolicyBuilder pb)