CorsOptions(IEnumerable<String>) コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
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 です。