WebSocketOptions.AllowedOrigins Property

Definition

Set the Origin header values allowed for WebSocket requests to prevent Cross-Site WebSocket Hijacking. By default all Origins are allowed.

C#
public System.Collections.Generic.IList<string> AllowedOrigins { get; }

Property Value

Applies to

Product Versions
ASP.NET Core 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0