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 @@ -126,14 +126,14 @@ In this case, you'll need to - *very carefully* - trust *all* proxies.
126126#. Once you've guaranteed that traffic will only come from your trusted reverse
127127 proxies, configure Symfony to *always * trust incoming request:
128128
129- .. code-block :: yaml
130-
131- # config/packages/framework.yaml
132- framework :
133- # ...
134- # trust *all* requests (the 'REMOTE_ADDR' string is replaced at
135- # run time by $_SERVER['REMOTE_ADDR'])
136- trusted_proxies : ' 127.0.0.1,REMOTE_ADDR'
129+ .. code-block :: yaml
130+
131+ # config/packages/framework.yaml
132+ framework :
133+ # ...
134+ # trust *all* requests (the 'REMOTE_ADDR' string is replaced at
135+ # run time by $_SERVER['REMOTE_ADDR'])
136+ trusted_proxies : ' 127.0.0.1,REMOTE_ADDR'
137137
138138 That's it! It's critical that you prevent traffic from all non-trusted sources.
139139If you allow outside traffic, they could "spoof" their true IP address and
You can’t perform that action at this time.
0 commit comments