From 6c6e829846dd28a2b1467d675e297222a51b5f01 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Fri, 29 Sep 2023 01:44:25 +0100 Subject: [PATCH] Add trust for proxy prefixed back in Was not set explicitly before, but a bug in Laravel caused prefixes to be trusted in our middlware anyway. (Fixed in v10.17.0). This adds it back in explicitly so the header is properly used again. --- app/Http/Middleware/TrustProxies.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Middleware/TrustProxies.php b/app/Http/Middleware/TrustProxies.php index 559dd2f..fd570c3 100644 --- a/app/Http/Middleware/TrustProxies.php +++ b/app/Http/Middleware/TrustProxies.php @@ -24,5 +24,6 @@ class TrustProxies extends Middleware 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; }