WebSocketOptions.AllowedOrigins 屬性

定義

設定 WebSocket 要求允許的 Origin 標頭值,以防止跨網站 WebSocket 攔截。 根據預設,允許所有 Origins。

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)

屬性值

適用於