From 83101b7d78947389e13599edc6f4f241dd6e47bf Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 22 Mar 2017 12:49:07 -0700 Subject: [PATCH] updated setTrustedProxies() to the new syntax --- recipes/symfony/framework-bundle/web/index.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/recipes/symfony/framework-bundle/web/index.php b/recipes/symfony/framework-bundle/web/index.php index d7dec356..cb3d088f 100644 --- a/recipes/symfony/framework-bundle/web/index.php +++ b/recipes/symfony/framework-bundle/web/index.php @@ -31,8 +31,7 @@ if (getenv('APP_DEBUG')) { Debug::enable(); } -// Request::setTrustedProxiestTrustedHeaderName(Request::HEADER_FORWARDED, null); -// Request::setTrustedProxies(['0.0.0.0/0']); +// Request::setTrustedProxies(['0.0.0.0/0'], Request::HEADER_FORWARDED); $kernel = new Kernel(getenv('APP_ENV'), getenv('APP_DEBUG')); $request = Request::createFromGlobals();