你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
CorsOptions.AllowedOrigins 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置源列表,从中向 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