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 | |
---|---|---|
EnableCors(HttpConfiguration) | Enables the support for CORS. |
|
EnableCors(HttpConfiguration, ICorsPolicyProvider) | Enables the support for CORS. |
|
GetCorsEngine(HttpConfiguration) | Gets the ICorsEngine from the HttpConfiguration. |
|
GetCorsPolicyProviderFactory(HttpConfiguration) | Gets the ICorsPolicyProviderFactory from the HttpConfiguration. |
|
SetCorsEngine(HttpConfiguration, ICorsEngine) | Sets the ICorsEngine on the HttpConfiguration. |
|
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
Return to top