Skip to content

Commit 02a9900

Browse files
KonstantinPopovRocketHashDeimos
authored andcommitted
D
1 parent 1125ab4 commit 02a9900

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Bootstraps/Symfony.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ public function getApplication()
108108
}
109109

110110
if ($trustedProxies = getenv('TRUSTED_PROXIES')) {
111-
Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_ALL ^ Request::HEADER_X_FORWARDED_HOST);
111+
Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_FOR | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO);
112+
112113
}
113114

114115
if ($trustedHosts = getenv('TRUSTED_HOSTS')) {

0 commit comments

Comments
 (0)