From c670141b7364605d66fbc8248c974b7351e33370 Mon Sep 17 00:00:00 2001 From: JohJohan Date: Sun, 10 Oct 2021 20:49:29 +0200 Subject: [PATCH] 14114 [HttpFoundation] header option 'X-Forwarded-Prefix' --- deployment/proxies.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deployment/proxies.rst b/deployment/proxies.rst index 62d5c182c1e..5b12fb5e946 100644 --- a/deployment/proxies.rst +++ b/deployment/proxies.rst @@ -34,7 +34,7 @@ and what headers your reverse proxy uses to send information: # the IP address (or range) of your proxy trusted_proxies: '192.0.0.1,10.0.0.0/8' # trust *all* "X-Forwarded-*" headers - trusted_headers: ['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port'] + trusted_headers: ['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port', 'x-forwarded-prefix'] # or, if your proxy instead uses the "Forwarded" header trusted_headers: ['forwarded'] @@ -59,6 +59,7 @@ and what headers your reverse proxy uses to send information: x-forwarded-host x-forwarded-proto x-forwarded-port + x-forwarded-prefix forwarded @@ -75,7 +76,7 @@ and what headers your reverse proxy uses to send information: // the IP address (or range) of your proxy ->trustedProxies('192.0.0.1,10.0.0.0/8') // trust *all* "X-Forwarded-*" headers (the ! prefix means to not trust those headers) - ->trustedHeaders(['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port']) + ->trustedHeaders(['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port', 'x-forwarded-prefix']) // or, if your proxy instead uses the "Forwarded" header ->trustedHeaders(['forwarded']) ;