你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CorsOptions.AllowedOrigins 属性

定义

将向 JavaScript 代码授予对索引的访问权限的来源列表。 可以包含格式为 {protocol}://{fully-qualified-domain-name}[:{port#}] 的主机列表,也可以包含单个“*”,以允许所有源 (不建议) 。

public System.Collections.Generic.IList<string> AllowedOrigins { get; }
member this.AllowedOrigins : System.Collections.Generic.IList<string>
Public ReadOnly Property AllowedOrigins As IList(Of String)

属性值

适用于