1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-22 07:42:28 +00:00

Forward X-Forwarded-Host header

(cherry picked from commit 3fbe4361386e9fb8dafdf82ad9f00f02bec746cc)
This commit is contained in:
Mark McDowall 2024-04-28 09:25:42 -07:00 committed by Bogdan
parent 1bdcf91014
commit f4a02ffc83

View file

@ -59,7 +59,7 @@ public void ConfigureServices(IServiceCollection services)
services.Configure<ForwardedHeadersOptions>(options =>
{
options.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto;
options.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto | ForwardedHeaders.XForwardedHost;
options.KnownNetworks.Clear();
options.KnownProxies.Clear();
});