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.
139
139
#. Once you've guaranteed that traffic will only come from your trusted reverse
140
140
proxies, configure Symfony to *always * trust incoming request:
141
141
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'
150
150
151
151
That's it! It's critical that you prevent traffic from all non-trusted sources.
152
152
If you allow outside traffic, they could "spoof" their true IP address and
You can’t perform that action at this time.
0 commit comments