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

SignalRData.CorsAllowedOrigins 属性

定义

获取或设置应允许 (进行跨源调用的源列表,例如: http://example.com:12345) 。 使用“*”,允许所有来源。 如果省略,则默认允许全部。

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

属性值

适用于