Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
trust more proxy headers
Browse files Browse the repository at this point in the history
  • Loading branch information
slafayIGN committed Sep 20, 2022
1 parent e482749 commit 3b3637a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}

if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? false) {
Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_FOR | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO);
Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_ALL);
}

if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? false) {
Expand Down

0 comments on commit 3b3637a

Please sign in to comment.