CorsOptions(IEnumerable<String>) コンストラクター

定義

CorsOptions の新しいインスタンスを初期化します。

public CorsOptions (System.Collections.Generic.IEnumerable<string> allowedOrigins);
new Azure.Search.Documents.Indexes.Models.CorsOptions : seq<string> -> Azure.Search.Documents.Indexes.Models.CorsOptions
Public Sub New (allowedOrigins As IEnumerable(Of String))

パラメーター

allowedOrigins
IEnumerable<String>

JavaScript コードにインデックスへのアクセス権が付与される配信元の一覧。 {protocol}://{fully-qualified-domain-name}[:{port#}]という形式のホストのリストを含めたり、すべての配信元を許可する単一の '*' を含めることができます (推奨されません)。

例外

allowedOrigins が null です。

適用対象