File tree Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Expand file tree Collapse file tree 2 files changed +15
-15
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.
126
126
#. Once you've guaranteed that traffic will only come from your trusted reverse
127
127
proxies, configure Symfony to *always * trust incoming request:
128
128
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'
137
137
138
138
That's it! It's critical that you prevent traffic from all non-trusted sources.
139
139
If you allow outside traffic, they could "spoof" their true IP address and
Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ Ever wondered what configuration options you have available to you in
6
6
configuration is broken down by the key (e.g. ``framework``) th at defines
7
7
each possible section of your Symfony configuration.
8
8
9
- * :doc:`framework </reference/configuration/framework>`
10
- * :doc:`doctrine </reference/configuration/doctrine>`
11
- * :doc:`security </reference/configuration/security>`
12
- * :doc:`twig </reference/configuration/twig>`
13
- * :doc:`monolog </reference/configuration/monolog>`
14
- * :doc:`web_profiler </reference/configuration/web_profiler>`
15
- * :doc:`debug </reference/configuration/debug>`
9
+ * :doc:`framework </reference/configuration/framework>`
10
+ * :doc:`doctrine </reference/configuration/doctrine>`
11
+ * :doc:`security </reference/configuration/security>`
12
+ * :doc:`twig </reference/configuration/twig>`
13
+ * :doc:`monolog </reference/configuration/monolog>`
14
+ * :doc:`web_profiler </reference/configuration/web_profiler>`
15
+ * :doc:`debug </reference/configuration/debug>`
16
16
17
17
Forms and Validation
18
18
--------------------
You can’t perform that action at this time.
0 commit comments