From 0075f10f98b1be7f0e500335f4d0b98d1e8ecc62 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 20 Apr 2025 21:02:54 +0200 Subject: [PATCH] Fix #10162 --- app/Http/Middleware/TrustProxies.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Http/Middleware/TrustProxies.php b/app/Http/Middleware/TrustProxies.php index 986bb2e5b8..ee1e7ef9d2 100644 --- a/app/Http/Middleware/TrustProxies.php +++ b/app/Http/Middleware/TrustProxies.php @@ -32,12 +32,12 @@ use Symfony\Component\HttpFoundation\Request; class TrustProxies extends Middleware { // After... - protected $headers - = Request::HEADER_X_FORWARDED_FOR - | Request::HEADER_X_FORWARDED_HOST - | Request::HEADER_X_FORWARDED_PORT - | Request::HEADER_X_FORWARDED_PROTO - | Request::HEADER_X_FORWARDED_AWS_ELB; + protected $headers = Request::HEADER_X_FORWARDED_FOR | + Request::HEADER_X_FORWARDED_HOST | + Request::HEADER_X_FORWARDED_PORT | + Request::HEADER_X_FORWARDED_PROTO | + Request::HEADER_X_FORWARDED_PREFIX | + Request::HEADER_X_FORWARDED_AWS_ELB; /** * TrustProxies constructor.