Show / Hide Table of Contents

    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.

    Inheritance
    Object
    CorsHttpModule
    Implements
    IHttpModule
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Nevatech.Vsb.Repository.Security
    Assembly: Nevatech.Vsb.Repository.dll
    Syntax
    public sealed class CorsHttpModule : IHttpModule
    Remarks

    References: http://www.w3.org/TR/cors/, http://msdn.microsoft.com/en-us/magazine/dn532203.aspx

    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.

    Implements

    System.Web.IHttpModule
    Back to top Nevatech Sentinet 6.5 Online Documentation