Udostępnij za pośrednictwem


CorsRule Constructors

Definition

Overloads

CorsRule()

Initializes a new instance of the CorsRule class.

CorsRule(IList<String>, IList<AllowedMethods>, Int32, IList<String>, IList<String>)

Initializes a new instance of the CorsRule class.

CorsRule()

Initializes a new instance of the CorsRule class.

public CorsRule ();
Public Sub New ()

Applies to

CorsRule(IList<String>, IList<AllowedMethods>, Int32, IList<String>, IList<String>)

Initializes a new instance of the CorsRule class.

public CorsRule (System.Collections.Generic.IList<string> allowedOrigins, System.Collections.Generic.IList<Microsoft.Azure.Management.Storage.Fluent.Models.AllowedMethods> allowedMethods, int maxAgeInSeconds, System.Collections.Generic.IList<string> exposedHeaders, System.Collections.Generic.IList<string> allowedHeaders);
new Microsoft.Azure.Management.Storage.Fluent.Models.CorsRule : System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Microsoft.Azure.Management.Storage.Fluent.Models.AllowedMethods> * int * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> -> Microsoft.Azure.Management.Storage.Fluent.Models.CorsRule
Public Sub New (allowedOrigins As IList(Of String), allowedMethods As IList(Of AllowedMethods), maxAgeInSeconds As Integer, exposedHeaders As IList(Of String), allowedHeaders As IList(Of String))

Parameters

allowedOrigins
IList<String>

Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains

allowedMethods
IList<AllowedMethods>

Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.

maxAgeInSeconds
Int32

Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.

exposedHeaders
IList<String>

Required if CorsRule element is present. A list of response headers to expose to CORS clients.

allowedHeaders
IList<String>

Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.

Applies to