Table of Contents

Class CorsConfigurator.PolicyOptions

Namespace
Tlabs.Config
Assembly
Tlabs.SrvBase.dll

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

bool

AllowAnyMethod

True to allow any method.

public bool AllowAnyMethod { get; set; }

Property Value

bool

AllowAnyOrigin

True to allow any origin.

public bool AllowAnyOrigin { get; set; }

Property Value

bool

AllowCredentials

True to allow access to any credentials.

public bool AllowCredentials { get; set; }

Property Value

bool

AllowWildcardSubdomain

True enable wildcard subdomain match with .

public bool AllowWildcardSubdomain { get; set; }

Property Value

bool

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

int

Methods

Configure(CorsPolicyBuilder)

Configure CORS policy

public CorsPolicyBuilder Configure(CorsPolicyBuilder pb)

Parameters

pb CorsPolicyBuilder

Returns

CorsPolicyBuilder