Search Results for

    Show / Hide Table of Contents

    Class CorsElement

    Represents a configuration element providing Cross-Origin Resource Sharing protocol settings.

    Inheritance
    object
    ConfigurationElement
    CorsElement
    Inherited Members
    ConfigurationElement.IsReadOnly()
    ConfigurationElement.Equals(object)
    ConfigurationElement.GetHashCode()
    ConfigurationElement.LockAttributes
    ConfigurationElement.LockAllAttributesExcept
    ConfigurationElement.LockElements
    ConfigurationElement.LockAllElementsExcept
    ConfigurationElement.LockItem
    ConfigurationElement.ElementInformation
    ConfigurationElement.CurrentConfiguration
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Nevatech.Vsb.Repository.Configuration
    Assembly: Nevatech.Vsb.Repository.dll
    Syntax
    public sealed class CorsElement : ConfigurationElement

    Constructors

    CorsElement()

    Declaration
    public CorsElement()

    Properties

    AllowCredentials

    Gets or sets the flag indicating whether the resource supports user credentials in the request. It is true when the resource does and false otherwise.

    Declaration
    [ConfigurationProperty("allowCredentials")]
    public bool AllowCredentials { get; set; }
    Property Value
    Type Description
    bool

    AllowedHeaders

    Gets or sets the list of HTTP headers consisting of zero or more header field names that are supported by the resource. A wildcard (*) can be used to allow all headers.

    Declaration
    [ConfigurationProperty("allowedHeaders")]
    public string AllowedHeaders { get; set; }
    Property Value
    Type Description
    string

    AllowedMethods

    Gets or sets the list of methods consisting of one or more HTTP methods that are supported by the resource. A wildcard (*) can be used to allow all methods. If property is Null or empty then CORS preflight requests are not supported.

    Declaration
    [ConfigurationProperty("allowedMethods")]
    public string AllowedMethods { get; set; }
    Property Value
    Type Description
    string

    AllowedOrigins

    Gets or sets the list of origins consisting of one or more URIs that are allowed access to the resource. A wildcard (*) can be used to allow access to all origins.

    Declaration
    [ConfigurationProperty("allowedOrigins")]
    public string AllowedOrigins { get; set; }
    Property Value
    Type Description
    string

    ExposedHeaders

    Gets or sets the list of exposed headers consisting of zero or more header field names of headers that the resource might use and can be exposed.

    Declaration
    [ConfigurationProperty("exposedHeaders")]
    public string ExposedHeaders { get; set; }
    Property Value
    Type Description
    string

    Prefix

    Gets or sets the beginning of the request URI path that must be matched in order for this CORS configuration to become effective.

    Declaration
    [ConfigurationProperty("prefix", IsRequired = true, IsKey = true)]
    public string Prefix { get; set; }
    Property Value
    Type Description
    string

    PreflightMaxAge

    Gets or sets the number of secords indicating how long the results of a preflight request can be cached on a client in a preflight result cache. Value must be positive.

    Declaration
    [ConfigurationProperty("preflightMaxAge")]
    public int PreflightMaxAge { get; set; }
    Property Value
    Type Description
    int

    Properties

    Gets collection of configuration element properties.

    Declaration
    protected override ConfigurationPropertyCollection Properties { get; }
    Property Value
    Type Description
    ConfigurationPropertyCollection
    Overrides
    ConfigurationElement.Properties
    In This Article
    Back to top Nevatech Sentinet 6.7 Online Documentation