diff --git a/src/Bootstraps/Symfony.php b/src/Bootstraps/Symfony.php index 2ecf668..944391c 100644 --- a/src/Bootstraps/Symfony.php +++ b/src/Bootstraps/Symfony.php @@ -108,7 +108,7 @@ public function getApplication() } if ($trustedProxies = getenv('TRUSTED_PROXIES')) { - Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_ALL ^ Request::HEADER_X_FORWARDED_HOST); + Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_FOR | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO); } if ($trustedHosts = getenv('TRUSTED_HOSTS')) {