System.Web.Http.Cors Namespace
Classes
Class | Description | |
---|---|---|
AttributeBasedPolicyProviderFactory | An implementation of ICorsPolicyProviderFactory that returns the ICorsPolicyProvider from the controller or action attribute. |
|
CorsHttpRequestMessageExtensions | CORS-related extension methods for HttpRequestMessage. |
|
CorsHttpResponseMessageExtensions | CORS-related extension methods for HttpResponseMessage. |
|
CorsMessageHandler | Custom DelegatingHandler for handling CORS requests. |
|
DisableCorsAttribute | This class defines an attribute that can be applied to an action or a controller to disable CORS. |
|
EnableCorsAttribute | This class defines an attribute that can be applied to an action or a controller to enable CORS. By default, it allows all origins, methods and headers. |
Interfaces
Interface | Description | |
---|---|---|
ICorsPolicyProvider | Provides an abstraction for getting the CorsPolicy. |
|
ICorsPolicyProviderFactory | Provides an abstraction for getting the ICorsPolicyProvider. |
Return to top