次の方法で共有


CorsSettings コンストラクター

定義

オーバーロード

CorsSettings()

CorsSettings クラスの新しいインスタンスを初期化します。

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

CorsSettings クラスの新しいインスタンスを初期化します。

CorsSettings()

CorsSettings クラスの新しいインスタンスを初期化します。

public CorsSettings ();
Public Sub New ()

適用対象

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

CorsSettings クラスの新しいインスタンスを初期化します。

public CorsSettings (System.Collections.Generic.IList<string> allowedOrigins = default, bool? supportCredentials = default);
new Microsoft.Azure.Management.WebSites.Models.CorsSettings : System.Collections.Generic.IList<string> * Nullable<bool> -> Microsoft.Azure.Management.WebSites.Models.CorsSettings
Public Sub New (Optional allowedOrigins As IList(Of String) = Nothing, Optional supportCredentials As Nullable(Of Boolean) = Nothing)

パラメーター

allowedOrigins
IList<String>

クロスオリジン呼び出しを許可する必要がある配信元の一覧を取得または設定します (例: http://example.com:12345)。 すべてを許可するには "*" を使用します。

supportCredentials
Nullable<Boolean>

資格情報を含む CORS 要求を許可するかどうかを取得または設定します。 詳細については、 https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials をご覧ください。

適用対象