Class CorsHttpModule
Represents an IHttpModule implementing the Cross-Origin Resource Sharing protocol that lets JavaScript overcome the same-origin policy security restriction imposed by browsers.
Implements
Inherited Members
Namespace: Nevatech.Vsb.Repository.Security
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class CorsHttpModule : IHttpModule
  Remarks
Constructors
CorsHttpModule()
Declaration
public CorsHttpModule()
  Properties
IsEnabled
Gets flag indicating that module is installed and enabled in the current application.
Declaration
public static bool IsEnabled { get; }
  Property Value
| Type | Description | 
|---|---|
| Boolean | 
Methods
AddAddress(Uri, CorsSettings)
Adds provided URL to the list of addresses supporting CORS protocol with its specific configuration.
Declaration
public static void AddAddress(Uri address, CorsSettings settings)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Uri | address | A URL to be registered.  | 
      
| CorsSettings | settings | Address-specific configuration of the CORS protocol.  | 
      
Dispose()
Disposes of the resources (other than memory) used by the module.
Declaration
public void Dispose()
  Init(HttpApplication)
Initializes a module and prepares it to handle requests.
Declaration
public void Init(HttpApplication context)
  Parameters
| Type | Name | Description | 
|---|---|---|
| HttpApplication | context | An HttpApplication that provides access to the methods, properties, and events common to all application objects within an ASP.NET application.  | 
      
RemoveAddress(Uri)
Removes provided URL from the list of addresses supporting CORS protocol.
Declaration
public static void RemoveAddress(Uri address)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Uri | address | A URL to be unregistered.  |