1 write to AllowedOrigins
Microsoft.AspNetCore.WebSockets (1)
WebSocketOptions.cs (1)
19AllowedOrigins = 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)
21o.AllowedOrigins.Add("someString"); 29Assert.Single(socketOptions.AllowedOrigins); 30Assert.Equal("someString", socketOptions.AllowedOrigins[0]);
WebSocketMiddlewareTests.cs (2)
664o.AllowedOrigins.Add(origin); 701o => o.AllowedOrigins.Add("http://example.com")))