File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ and what headers your reverse proxy uses to send information:
33
33
# ...
34
34
// the IP address (or range) of your proxy
35
35
trusted_proxies : ' 192.0.0.1,10.0.0.0/8'
36
- // trust *all* "X-Forwarded-*" headers (the ! prefix means to not trust those headers)
37
- trusted_headers : ['x-forwarded-all ', '! x-forwarded-host', '! x-forwarded-prefix ']
36
+ // trust *all* "X-Forwarded-*" headers
37
+ trusted_headers : ['x-forwarded-for ', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port ']
38
38
// or, if your proxy instead uses the "Forwarded" header
39
- trusted_headers : ['forwarded', '!x-forwarded-host', '!x-forwarded-prefix' ]
39
+ trusted_headers : ['forwarded']
40
40
// or, if you're using a wellknown proxy
41
- trusted_headers : [!php/const Symfony\\Component\\HttpFoundation\\Request::HEADER_X_FORWARDED_AWS_ELB, '!x-forwarded-host', '!x-forwarded-prefix' ]
42
- trusted_headers : [!php/const Symfony\\Component\\HttpFoundation\\Request::HEADER_X_FORWARDED_TRAEFIK, '!x-forwarded-host', '!x-forwarded-prefix' ]
41
+ trusted_headers : [!php/const Symfony\\Component\\HttpFoundation\\Request::HEADER_X_FORWARDED_AWS_ELB]
42
+ trusted_headers : [!php/const Symfony\\Component\\HttpFoundation\\Request::HEADER_X_FORWARDED_TRAEFIK]
43
43
44
44
.. code-block :: xml
45
45
You can’t perform that action at this time.
0 commit comments