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)
Inheritance Hierarchy
System.Object
System.Web.Cors.CorsPolicy
Syntax
public class CorsPolicy
public ref class CorsPolicy
type CorsPolicy = class end
Public Class CorsPolicy
Constructors
Name | Description | |
---|---|---|
CorsPolicy() | Initializes a new instance of the CorsPolicy class. |
Properties
Name | Description | |
---|---|---|
AllowAnyHeader | Gets or sets a value indicating whether to allow all headers. |
|
AllowAnyMethod | Gets or sets a value indicating whether to allow all methods. |
|
AllowAnyOrigin | Gets or sets a value indicating whether to allow all origins. |
|
ExposedHeaders | Gets the headers that the resource might use and can be exposed. |
|
Headers | Gets the headers that are supported by the resource. |
|
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 number of seconds 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
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ToString() | Returns a String that represents this instance.(Overrides Object.ToString().) |
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
Return to top