Skip to content

Commit

Permalink
Merge pull request #6128 from ji-eunsoo/feature/fix_header_x_forwarde…
Browse files Browse the repository at this point in the history
…d_all

HEADER_X_FORWARDED_ALLのエラーを修正
  • Loading branch information
dotani1111 committed Apr 4, 2024
2 parents 9ef759f + 249a9a3 commit 3f62b87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

$trustedProxies = isset($_SERVER['TRUSTED_PROXIES']) ? $_SERVER['TRUSTED_PROXIES'] : false;
if ($trustedProxies) {
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_HOST |Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO ^ Request::HEADER_X_FORWARDED_HOST);
}

$trustedHosts = isset($_SERVER['TRUSTED_HOSTS']) ? $_SERVER['TRUSTED_HOSTS'] : false;
Expand Down

0 comments on commit 3f62b87

Please sign in to comment.