@@ -34,7 +34,7 @@ and what headers your reverse proxy uses to send information:
34
34
# the IP address (or range) of your proxy
35
35
trusted_proxies : ' 192.0.0.1,10.0.0.0/8'
36
36
# 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' ]
38
38
# or, if your proxy instead uses the "Forwarded" header
39
39
trusted_headers : ['forwarded']
40
40
@@ -59,6 +59,7 @@ and what headers your reverse proxy uses to send information:
59
59
<framework : trusted-header >x-forwarded-host</framework : trusted-header >
60
60
<framework : trusted-header >x-forwarded-proto</framework : trusted-header >
61
61
<framework : trusted-header >x-forwarded-port</framework : trusted-header >
62
+ <framework : trusted-header >x-forwarded-prefix</framework : trusted-header >
62
63
63
64
<!-- or, if your proxy instead uses the "Forwarded" header -->
64
65
<framework : trusted-header >forwarded</framework : trusted-header >
@@ -74,7 +75,7 @@ and what headers your reverse proxy uses to send information:
74
75
// the IP address (or range) of your proxy
75
76
'trusted_proxies' => '192.0.0.1,10.0.0.0/8',
76
77
// 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' ],
78
79
// or, if your proxy instead uses the "Forwarded" header
79
80
'trusted_headers' => ['forwarded'],
80
81
]);
0 commit comments