8000 Update load_balancer_reverse_proxy.rst · symfony/symfony-docs@037eda8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 037eda8

Browse files
Patrick McAndrewweaverryan
Patrick McAndrew
authored andcommitted
Update load_balancer_reverse_proxy.rst
Remind that the trusted_proxies setting needs to be removed or the setTrustedProxies method call will be overwritten.
1 parent 875f4ee commit 037eda8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cookbook/request/load_balancer_reverse_proxy.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ In this case, you'll need to - *very carefully* - trust *all* proxies.
8383
$response = $kernel->handle($request);
8484
// ...
8585

86+
#. Ensure that the trusted_proxies setting in your app/config/config.yml is not set or
87+
it will overwrite the setTrustedProxies call above.
88+
8689
That's it! It's critical that you prevent traffic from all non-trusted sources.
8790
If you allow outside traffic, they could "spoof" their true IP address and
8891
other information.

0 commit comments

Comments
 (0)
0