CorsSettings Constructors

Definition

Overloads

CorsSettings()

Initializes a new instance of the CorsSettings class.

CorsSettings(IList<String>, Nullable<Boolean>)

Initializes a new instance of the CorsSettings class.

CorsSettings()

Initializes a new instance of the CorsSettings class.

public CorsSettings ();

Applies to

Azure SDK for .NET Legacy
Produto Versões
Azure SDK for .NET Legacy

CorsSettings(IList<String>, Nullable<Boolean>)

Initializes a new instance of the CorsSettings class.

public CorsSettings (System.Collections.Generic.IList<string> allowedOrigins = default, bool? supportCredentials = default);

Parameters

allowedOrigins
IList<String>

Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). Use "*" to allow all.

supportCredentials
Nullable<Boolean>

Gets or sets whether CORS requests with credentials are allowed. See https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials for more details.

Applies to

Azure SDK for .NET Legacy
Produto Versões
Azure SDK for .NET Legacy