WebSocketOptions.AllowedOrigins 属性

定义

设置允许 WebSocket 请求的 Origin 标头值,以防止跨网站 WebSocket 劫持。 默认情况下,允许所有 Origin。

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

属性值

适用于