45 references to Origin
CodeGenerator (1)
src\Servers\Kestrel\shared\KnownHeaders.cs (1)
124HeaderNames.Origin,
InMemory.FunctionalTests (15)
Http2\Http2WebSocketTests.cs (8)
58new KeyValuePair<string, string>(HeaderNames.Origin, "http://www.example.com"), 124new KeyValuePair<string, string>(HeaderNames.Origin, "http://www.example.com"), 215new KeyValuePair<string, string>(HeaderNames.Origin, "http://www.example.com"), 348new KeyValuePair<string, string>(HeaderNames.Origin, "http://www.example.com"), 417new KeyValuePair<string, string>(HeaderNames.Origin, "http://www.example.com"), 485new KeyValuePair<string, string>(HeaderNames.Origin, "http://www.example.com"), 547new KeyValuePair<string, string>(HeaderNames.Origin, "http://www.example.com"), 657new KeyValuePair<string, string>(HeaderNames.Origin, "http://www.example.com"),
Http3\WebTransport\WebTransportHandshakeTests.cs (6)
73new KeyValuePair<string, string>(HeaderNames.Origin, "server.example.com"), 94nameof(HeaderNames.Origin), "server.example.com")] 102nameof(HeaderNames.Origin), "server.example.com")] // no path 110nameof(HeaderNames.Origin), "server.example.com")] // no authority 162nameof(HeaderNames.Origin) => HeaderNames.Origin,
Http3\WebTransport\WebTransportTestUtilities.cs (1)
68new KeyValuePair<string, string>(HeaderNames.Origin, "server.example.com"),
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsConstants.cs (1)
22public static readonly string Origin = HeaderNames.Origin;
Microsoft.AspNetCore.Http.Features (2)
IHeaderDictionary.Keyed.cs (2)
167StringValues Origin { get => this[HeaderNames.Origin]; set => this[HeaderNames.Origin] = value; }
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheEntryFormatter.cs (1)
446HeaderNames.Origin,
Microsoft.AspNetCore.Routing (2)
Matching\HttpMethodMatcherPolicy.cs (2)
119headers.ContainsKey(HeaderNames.Origin) && 425headers.ContainsKey(HeaderNames.Origin) &&
Microsoft.AspNetCore.Routing.FunctionalTests (1)
EndpointRoutingIntegrationTest.cs (1)
308request.AddHeader(HeaderNames.Origin, "http://testlocation.com");
Microsoft.AspNetCore.Routing.Tests (1)
Matching\HttpMethodMatcherPolicyIntegrationTestBase.cs (1)
374httpContext.Request.Headers[HeaderNames.Origin] = "example.com";
Microsoft.AspNetCore.Server.Kestrel.Core (19)
Internal\Http\HttpHeaders.Generated.cs (19)
338HeaderNames.Origin, 2769if (ReferenceEquals(HeaderNames.Origin, key)) 2815if (HeaderNames.Origin.Equals(key, StringComparison.OrdinalIgnoreCase)) 3727if (ReferenceEquals(HeaderNames.Origin, key)) 3758if (HeaderNames.Origin.Equals(key, StringComparison.OrdinalIgnoreCase)) 4502if (ReferenceEquals(HeaderNames.Origin, key)) 4553if (HeaderNames.Origin.Equals(key, StringComparison.OrdinalIgnoreCase)) 5609if (ReferenceEquals(HeaderNames.Origin, key)) 5660if (HeaderNames.Origin.Equals(key, StringComparison.OrdinalIgnoreCase)) 7334array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Origin, _headers._Origin); 7599nameStr = HeaderNames.Origin; 8282nameStr = HeaderNames.Origin; 8574_current = new KeyValuePair<string, StringValues>(HeaderNames.Origin, _collection._headers._Origin); 10412if (!TryGetUnknown(HeaderNames.Origin, ref value)) 10421ValidateHeaderValueCharacters(HeaderNames.Origin, value, EncodingSelector); 10422SetValueUnknown(HeaderNames.Origin, value); 16505if (!TryGetUnknown(HeaderNames.Origin, ref value)) 16514ValidateHeaderValueCharacters(HeaderNames.Origin, value, EncodingSelector); 16515SetValueUnknown(HeaderNames.Origin, value);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\KnownHeaders.cs (1)
124HeaderNames.Origin,
Microsoft.AspNetCore.WebSockets.Tests (1)
WebSocketMiddlewareTests.cs (1)
684request.Headers.Add(HeaderNames.Origin, "http://example.com");