CorsOptions CorsOptions CorsOptions Class

Definition

Provides programmatic configuration for Cors.

public class CorsOptions
type CorsOptions = class
Public Class CorsOptions
Inheritance
CorsOptionsCorsOptionsCorsOptions

Constructors

CorsOptions() CorsOptions() CorsOptions()

Properties

DefaultPolicyName DefaultPolicyName DefaultPolicyName

Methods

AddDefaultPolicy(CorsPolicy) AddDefaultPolicy(CorsPolicy) AddDefaultPolicy(CorsPolicy)

Adds a new policy and sets it as the default.

AddDefaultPolicy(Action<CorsPolicyBuilder>) AddDefaultPolicy(Action<CorsPolicyBuilder>) AddDefaultPolicy(Action<CorsPolicyBuilder>)

Adds a new policy and sets it as the default.

AddPolicy(String, CorsPolicy) AddPolicy(String, CorsPolicy) AddPolicy(String, CorsPolicy)

Adds a new policy.

AddPolicy(String, Action<CorsPolicyBuilder>) AddPolicy(String, Action<CorsPolicyBuilder>) AddPolicy(String, Action<CorsPolicyBuilder>)

Adds a new policy.

GetPolicy(String) GetPolicy(String) GetPolicy(String)

Gets the policy based on the name

Applies to