You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, as AWS Elastic Load Balancing provide standard header but no X-Forwarded-Host and X-Forwarded, you should use this configuration your front controller::
144
-
.. code-block:: diff
143
+
AWS Elastic Load Balancing for example does not provide the ``X-Forwarded-Host``
144
+
and ``X-Forwarded`` HTTP headers, so you must make the following changes in the
145
+
front controller::
146
+
147
+
.. code-block:: diff
145
148
146
149
// web/app.php
147
150
148
151
// ...
149
152
$request = Request::createFromGlobals();
150
-
+ Request::setTrustedProxies(array('127.0.0.1', $request->server->get('REMOTE_ADDR'))); //be very careful with this line, see the above chapter "But what if the IP of my Reverse Proxy Changes Constantly!"
0 commit comments