File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -139,14 +139,14 @@ In this case, you'll need to - *very carefully* - trust *all* proxies.
139139#. Once you've guaranteed that traffic will only come from your trusted reverse
140140 proxies, configure Symfony to *always * trust incoming request:
141141
142- .. code-block :: yaml
143-
144- # config/packages/framework.yaml
145- framework :
146- # ...
147- # trust *all* requests (the 'REMOTE_ADDR' string is replaced at
148- # run time by $_SERVER['REMOTE_ADDR'])
149- trusted_proxies : ' 127.0.0.1,REMOTE_ADDR'
142+ .. code-block :: yaml
143+
144+ # config/packages/framework.yaml
145+ framework :
146+ # ...
147+ # trust *all* requests (the 'REMOTE_ADDR' string is replaced at
148+ # run time by $_SERVER['REMOTE_ADDR'])
149+ trusted_proxies : ' 127.0.0.1,REMOTE_ADDR'
150150
151151 That's it! It's critical that you prevent traffic from all non-trusted sources.
152152If you allow outside traffic, they could "spoof" their true IP address and
You can’t perform that action at this time.
0 commit comments