System.Web.Http.Cors Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Classes
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
ICorsPolicyProvider |
Provides an abstraction for getting the CorsPolicy. |
ICorsPolicyProviderFactory |
Provides an abstraction for getting the ICorsPolicyProvider. |