Commit 58fc60f3 authored by marc.weistroff's avatar marc.weistroff

Adds doc about proxy headers trust

parent ffe8f9fc
...@@ -45,6 +45,16 @@ are using apache you can use a ``.htaccess`` file for this. ...@@ -45,6 +45,16 @@ are using apache you can use a ``.htaccess`` file for this.
$app['debug'] = true; $app['debug'] = true;
.. tip::
If your application is hosted behind a reverse proxy and you want Silex
to trust the `X-Forwarded-For*` headers, you will need to run your application
like this::
$request = Symfony\Component\HttpFoundation\Request::createFromGlobals();
$request::trustProxyData();
$app->run($request);
Routing Routing
------- -------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment