Share via


CorsConstants Class

 

CORS-related constants.

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

Inheritance Hierarchy

System.Object
  System.Web.Cors.CorsConstants

Syntax

public static class CorsConstants
public ref class CorsConstants abstract sealed 
[<AbstractClass>]
[<Sealed>]
type CorsConstants = class end
Public NotInheritable Class CorsConstants

Fields

Name Description
System_CAPS_pubfieldSystem_CAPS_static AccessControlAllowCredentials

The Access-Control-Allow-Credentials response header.

System_CAPS_pubfieldSystem_CAPS_static AccessControlAllowHeaders

The Access-Control-Allow-Headers response header.

System_CAPS_pubfieldSystem_CAPS_static AccessControlAllowMethods

The Access-Control-Allow-Methods response header.

System_CAPS_pubfieldSystem_CAPS_static AccessControlAllowOrigin

The Access-Control-Allow-Origin response header.

System_CAPS_pubfieldSystem_CAPS_static AccessControlExposeHeaders

The Access-Control-Expose-Headers response header.

System_CAPS_pubfieldSystem_CAPS_static AccessControlMaxAge

The Access-Control-Max-Age response header.

System_CAPS_pubfieldSystem_CAPS_static AccessControlRequestHeaders

The Access-Control-Request-Headers request header.

System_CAPS_pubfieldSystem_CAPS_static AccessControlRequestMethod

The Access-Control-Request-Method request header.

System_CAPS_pubfieldSystem_CAPS_static AnyOrigin

The value for the Access-Control-Allow-Origin response header to allow all origins.

System_CAPS_pubfieldSystem_CAPS_static Origin

The Origin request header.

System_CAPS_pubfieldSystem_CAPS_static PreflightHttpMethod

The HTTP method for the CORS preflight request.

Thread Safety

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

See Also

System.Web.Cors Namespace

Return to top