48 references to ForwardedHeaders
HttpOverridesSample (2)
Startup.cs (2)
15
ForwardedHeaders =
ForwardedHeaders
.XForwardedFor |
ForwardedHeaders
.XForwardedProto
Microsoft.AspNetCore (2)
ForwardedHeadersOptionsSetup.cs (2)
27
options.ForwardedHeaders =
ForwardedHeaders
.XForwardedFor |
ForwardedHeaders
.XForwardedProto;
Microsoft.AspNetCore.HttpOverrides (5)
ForwardedHeadersMiddleware.cs (4)
129
if (_options.ForwardedHeaders.HasFlag(
ForwardedHeaders
.XForwardedFor))
136
if (_options.ForwardedHeaders.HasFlag(
ForwardedHeaders
.XForwardedProto))
148
if (_options.ForwardedHeaders.HasFlag(
ForwardedHeaders
.XForwardedHost))
162
if (_options.ForwardedHeaders.HasFlag(
ForwardedHeaders
.XForwardedPrefix))
ForwardedHeadersOptions.cs (1)
69
public
ForwardedHeaders
ForwardedHeaders { get; set; }
Microsoft.AspNetCore.HttpOverrides.Tests (37)
ForwardedHeadersMiddlewareTest.cs (37)
29
ForwardedHeaders =
ForwardedHeaders
.XForwardedFor
64
ForwardedHeaders =
ForwardedHeaders
.XForwardedFor,
118
ForwardedHeaders =
ForwardedHeaders
.XForwardedFor,
161
ForwardedHeaders =
ForwardedHeaders
.XForwardedFor,
227
ForwardedHeaders =
ForwardedHeaders
.XForwardedFor,
266
ForwardedHeaders =
ForwardedHeaders
.XForwardedFor
295
ForwardedHeaders =
ForwardedHeaders
.XForwardedHost
361
ForwardedHeaders =
ForwardedHeaders
.XForwardedHost
446
ForwardedHeaders =
ForwardedHeaders
.XForwardedHost
496
ForwardedHeaders =
ForwardedHeaders
.XForwardedHost,
547
ForwardedHeaders =
ForwardedHeaders
.XForwardedHost,
582
ForwardedHeaders =
ForwardedHeaders
.XForwardedHost,
624
ForwardedHeaders =
ForwardedHeaders
.XForwardedProto,
673
ForwardedHeaders =
ForwardedHeaders
.XForwardedProto
730
ForwardedHeaders =
ForwardedHeaders
.XForwardedProto,
772
ForwardedHeaders =
ForwardedHeaders
.XForwardedProto |
ForwardedHeaders
.XForwardedFor,
814
ForwardedHeaders =
ForwardedHeaders
.XForwardedProto |
ForwardedHeaders
.XForwardedFor,
858
ForwardedHeaders =
ForwardedHeaders
.XForwardedProto |
ForwardedHeaders
.XForwardedFor,
889
Assert.True(options.ForwardedHeaders ==
ForwardedHeaders
.None);
907
ForwardedHeaders =
ForwardedHeaders
.All
942
ForwardedHeaders =
ForwardedHeaders
.None
977
ForwardedHeaders =
ForwardedHeaders
.XForwardedFor |
ForwardedHeaders
.XForwardedProto
1008
ForwardedHeaders =
ForwardedHeaders
.XForwardedFor,
1062
options.ForwardedHeaders =
ForwardedHeaders
.XForwardedProto;
1102
ForwardedHeaders =
ForwardedHeaders
.XForwardedProto,
1146
ForwardedHeaders =
ForwardedHeaders
.XForwardedPrefix,
1188
ForwardedHeaders =
ForwardedHeaders
.XForwardedPrefix,
1224
ForwardedHeaders =
ForwardedHeaders
.XForwardedPrefix,
1264
ForwardedHeaders
.XForwardedFor |
1265
ForwardedHeaders
.XForwardedHost |
1266
ForwardedHeaders
.XForwardedProto |
1267
ForwardedHeaders
.XForwardedPrefix,
1313
ForwardedHeaders =
ForwardedHeaders
.XForwardedPrefix,
Microsoft.AspNetCore.Server.IISIntegration (2)
WebHostBuilderIISExtensions.cs (2)
94
options.ForwardedHeaders =
ForwardedHeaders
.XForwardedFor |
ForwardedHeaders
.XForwardedProto;