Skip to content

Commit

Permalink
Fixed issue wit Symfony6 BC break
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantinPopov authored and RocketHashDeimos committed Apr 15, 2022
1 parent 1125ab4 commit 524cc75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Bootstraps/Symfony.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ 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')) {
Expand Down

0 comments on commit 524cc75

Please sign in to comment.