Share via


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

CorsOptions.AllowedOrigins 属性

定义

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

[Newtonsoft.Json.JsonProperty(PropertyName="allowedOrigins")]
public System.Collections.Generic.IList<string> AllowedOrigins { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="allowedOrigins")>]
member this.AllowedOrigins : System.Collections.Generic.IList<string> with get, set
Public Property AllowedOrigins As IList(Of String)

属性值

属性
Newtonsoft.Json.JsonPropertyAttribute

适用于