Skip to content

Commit

Permalink
Allow ForwardedHeaders from all locations
Browse files Browse the repository at this point in the history
  • Loading branch information
usercode committed Apr 11, 2022
1 parent b44324c commit 019a4f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ImageWizard/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ public void ConfigureServices(IServiceCollection services)
services.Configure<ForwardedHeadersOptions>(options =>
{
options.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto | ForwardedHeaders.XForwardedHost;
options.KnownNetworks.Clear();
options.KnownProxies.Clear();
});
services.AddHttpsRedirection(x => x.HttpsPort = 443);
}
Expand Down

0 comments on commit 019a4f4

Please sign in to comment.