CorsPolicy Class

Definition

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

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

Constructors

CorsPolicy()

Default constructor for a CorsPolicy.

Properties

AllowAnyHeader

Gets a value indicating if all headers are allowed.

AllowAnyMethod

Gets a value indicating if all methods are allowed.

AllowAnyOrigin

Gets a value indicating if all origins are allowed.

ExposedHeaders

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

Headers

Gets the headers that are supported by the resource.

IsOriginAllowed

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

Methods

Gets the methods that are supported by the resource.

Origins

Gets the origins that are allowed to access the resource.

PreflightMaxAge

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

SupportsCredentials

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

Methods

ToString()

Returns a String that represents this instance.

Applies to