CorsPolicy Class

 

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

Namespace:   System.Web.Cors
Assembly:  System.Web.Cors (in System.Web.Cors.dll)

System::Object
  System.Web.Cors::CorsPolicy

public ref class CorsPolicy 

NameDescription
System_CAPS_pubmethodCorsPolicy()

Initializes a new instance of the CorsPolicy class.

NameDescription
System_CAPS_pubpropertyAllowAnyHeader

Gets or sets a value indicating whether to allow all headers.

System_CAPS_pubpropertyAllowAnyMethod

Gets or sets a value indicating whether to allow all methods.

System_CAPS_pubpropertyAllowAnyOrigin

Gets or sets a value indicating whether to allow all origins.

System_CAPS_pubpropertyExposedHeaders

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

System_CAPS_pubpropertyHeaders

Gets the headers that are supported by the resource.

System_CAPS_pubpropertyMethods

Gets the methods that are supported by the resource.

System_CAPS_pubpropertyOrigins

Gets the origins that are allowed to access the resource.

System_CAPS_pubpropertyPreflightMaxAge

Gets or sets the number of seconds the results of a preflight request can be cached.

System_CAPS_pubpropertySupportsCredentials

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

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a String that represents this instance.(Overrides Object::ToString().)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: