Table of Contents

Namespace System.Web.Http.Cors

Classes

AttributeBasedPolicyProviderFactory

An implementation of ICorsPolicyProviderFactory that returns the ICorsPolicyProvider from the controller or action attribute.

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 System.Web.Cors.CorsPolicy.

ICorsPolicyProviderFactory

Provides an abstraction for getting the ICorsPolicyProvider.