1 write to AllowedOrigins
Microsoft.AspNetCore.WebSockets (1)
WebSocketOptions.cs (1)
19
AllowedOrigins
= new List<string>();
8 references to AllowedOrigins
Microsoft.AspNetCore.WebSockets (3)
WebSocketMiddleware.cs (3)
42
_allowedOrigins = _options.
AllowedOrigins
.Select(o => o.ToLowerInvariant()).ToList();
43
_anyOriginAllowed = _options.
AllowedOrigins
.Count == 0 || _options.
AllowedOrigins
.Contains("*", StringComparer.Ordinal);
Microsoft.AspNetCore.WebSockets.Tests (5)
AddWebSocketsTests.cs (3)
21
o.
AllowedOrigins
.Add("someString");
29
Assert.Single(socketOptions.
AllowedOrigins
);
30
Assert.Equal("someString", socketOptions.
AllowedOrigins
[0]);
WebSocketMiddlewareTests.cs (2)
664
o.
AllowedOrigins
.Add(origin);
701
o => o.
AllowedOrigins
.Add("http://example.com")))