@@ -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 >
@@ -75,7 +76,7 @@ and what headers your reverse proxy uses to send information:
7576 // the IP address (or range) of your proxy
7677 ->trustedProxies('192.0.0.1,10.0.0.0/8')
7778 // trust *all* "X-Forwarded-*" headers (the ! prefix means to not trust those headers)
78- ->trustedHeaders(['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port'])
79+ ->trustedHeaders(['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port', 'x-forwarded-prefix' ])
7980 // or, if your proxy instead uses the "Forwarded" header
8081 ->trustedHeaders(['forwarded'])
8182 ;
0 commit comments