CorsPolicy CorsPolicy CorsPolicy Class

Definition

Defines the policy for Cross-Origin requests based on the CORS specifications.

public class CorsPolicy
type CorsPolicy = class
Public Class CorsPolicy
Inheritance
CorsPolicyCorsPolicyCorsPolicy

Constructors

CorsPolicy() CorsPolicy() CorsPolicy()

Default constructor for a CorsPolicy.

Properties

AllowAnyHeader AllowAnyHeader AllowAnyHeader

Gets a value indicating if all headers are allowed.

AllowAnyMethod AllowAnyMethod AllowAnyMethod

Gets a value indicating if all methods are allowed.

AllowAnyOrigin AllowAnyOrigin AllowAnyOrigin

Gets a value indicating if all origins are allowed.

ExposedHeaders ExposedHeaders ExposedHeaders

Gets the headers that the resource might use and can be exposed.

Headers Headers Headers

Gets the headers that are supported by the resource.

IsOriginAllowed IsOriginAllowed IsOriginAllowed

Gets or sets a function which evaluates whether an origin is allowed.

Methods Methods Methods

Gets the methods that are supported by the resource.

Origins Origins Origins

Gets the origins that are allowed to access the resource.

PreflightMaxAge PreflightMaxAge PreflightMaxAge

Gets or sets the TimeSpan for which the results of a preflight request can be cached.

SupportsCredentials SupportsCredentials SupportsCredentials

Gets or sets a value indicating whether the resource supports user credentials in the request.

Methods

ToString() ToString() ToString()

Returns a String that represents this instance.

Applies to