Skip to content

Commit c9c6a97

Browse files
committed
minor #5242 Update load_balancer_reverse_proxy.rst (urg)
This PR was submitted for the 2.6 branch but it was merged into the 2.3 branch instead (closes #5242). Discussion ---------- Update load_balancer_reverse_proxy.rst Remind that the trusted_proxies setting needs to be removed or the setTrustedProxies method call will be overwritten. Commits ------- da65156 Adjust line wrapping 4d8c89d Add formatting for file and method names 037eda8 Update load_balancer_reverse_proxy.rst
2 parents 875f4ee + da65156 commit c9c6a97

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``
87+
is not set or 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)