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 ();
Public Sub New ()

Applies to

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);
new Microsoft.Azure.Management.AppService.Fluent.Models.CorsSettings : System.Collections.Generic.IList<string> * Nullable<bool> -> Microsoft.Azure.Management.AppService.Fluent.Models.CorsSettings
Public Sub New (Optional allowedOrigins As IList(Of String) = Nothing, Optional supportCredentials As Nullable(Of Boolean) = Nothing)

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