1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-10-29 23:12:39 +01:00

Forward X-Forwarded-Host header

Closes #6764
This commit is contained in:
Mark McDowall 2024-04-28 09:25:42 -07:00 committed by Mark McDowall
parent 92eab4b2e2
commit 3fbe436138

View File

@ -56,7 +56,7 @@ namespace NzbDrone.Host
services.Configure<ForwardedHeadersOptions>(options =>
{
options.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto;
options.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto | ForwardedHeaders.XForwardedHost;
options.KnownNetworks.Clear();
options.KnownProxies.Clear();
});