Skip to content

Commit bc3d382

Browse files
committed
14114 [HttpFoundation] header option 'X-Forwarded-Prefix'
1 parent 72ec9c6 commit bc3d382

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

deployment/proxies.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ and what headers your reverse proxy uses to send information:
3434
# the IP address (or range) of your proxy
3535
trusted_proxies: '192.0.0.1,10.0.0.0/8'
3636
# trust *all* "X-Forwarded-*" headers
37-
trusted_headers: ['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port']
37+
trusted_headers: ['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port', 'x-forwarded-prefix']
3838
# or, if your proxy instead uses the "Forwarded" header
3939
trusted_headers: ['forwarded']
4040
@@ -59,6 +59,7 @@ and what headers your reverse proxy uses to send information:
5959
<framework:trusted-header>x-forwarded-host</framework:trusted-header>
6060
<framework:trusted-header>x-forwarded-proto</framework:trusted-header>
6161
<framework:trusted-header>x-forwarded-port</framework:trusted-header>
62+
<framework:trusted-header>x-forwarded-prefix</framework:trusted-header>
6263
6364
<!-- or, if your proxy instead uses the "Forwarded" header -->
6465
<framework:trusted-header>forwarded</framework:trusted-header>
@@ -74,7 +75,7 @@ and what headers your reverse proxy uses to send information:
7475
// the IP address (or range) of your proxy
7576
'trusted_proxies' => '192.0.0.1,10.0.0.0/8',
7677
// trust *all* "X-Forwarded-*" headers (the ! prefix means to not trust those headers)
77-
'trusted_headers' => ['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port'],
78+
'trusted_headers' => ['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port', 'x-forwarded-prefix'],
7879
// or, if your proxy instead uses the "Forwarded" header
7980
'trusted_headers' => ['forwarded'],
8081
]);

0 commit comments

Comments
 (0)