We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20db8fe commit 531f773Copy full SHA for 531f773
EssentialCSharp.Web/Program.cs
@@ -23,6 +23,12 @@ private static void Main(string[] args)
23
{
24
options.ForwardedHeaders =
25
ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto;
26
+
27
+ // Only loopback proxies are allowed by default.
28
+ // Clear that restriction because forwarders are enabled by explicit
29
+ // configuration.
30
+ options.KnownNetworks.Clear();
31
+ options.KnownProxies.Clear();
32
});
33
34
ConfigurationManager configuration = builder.Configuration;
0 commit comments