Share via


CorsHttpConfigurationExtensions Class

 

CORS-related extension methods for HttpConfiguration.

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

Inheritance Hierarchy

System.Object
  System.Web.Http.CorsHttpConfigurationExtensions

Syntax

[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public static class CorsHttpConfigurationExtensions
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
public ref class CorsHttpConfigurationExtensions abstract sealed 
[<AbstractClass>]
[<Sealed>]
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
type CorsHttpConfigurationExtensions = class end
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Never)>
Public NotInheritable Class CorsHttpConfigurationExtensions

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static EnableCors(HttpConfiguration)

Enables the support for CORS.

System_CAPS_pubmethodSystem_CAPS_static EnableCors(HttpConfiguration, ICorsPolicyProvider)

Enables the support for CORS.

System_CAPS_pubmethodSystem_CAPS_static GetCorsEngine(HttpConfiguration)

Gets the ICorsEngine from the HttpConfiguration.

System_CAPS_pubmethodSystem_CAPS_static GetCorsPolicyProviderFactory(HttpConfiguration)

Gets the ICorsPolicyProviderFactory from the HttpConfiguration.

System_CAPS_pubmethodSystem_CAPS_static SetCorsEngine(HttpConfiguration, ICorsEngine)

Sets the ICorsEngine on the HttpConfiguration.

System_CAPS_pubmethodSystem_CAPS_static SetCorsPolicyProviderFactory(HttpConfiguration, ICorsPolicyProviderFactory)

Sets the ICorsPolicyProviderFactory on the HttpConfiguration.

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.Http Namespace

Return to top