From d41c4c8d4caf088a8aa118272fa62fafc26852e7 Mon Sep 17 00:00:00 2001 From: Shift Date: Fri, 16 Feb 2024 20:33:33 +0000 Subject: [PATCH] Replace deprecated `HEADER_X_FORWARDED_ALL` constant --- app/Http/Middleware/TrustProxies.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Middleware/TrustProxies.php b/app/Http/Middleware/TrustProxies.php index d0acfbec..95e5ccd7 100644 --- a/app/Http/Middleware/TrustProxies.php +++ b/app/Http/Middleware/TrustProxies.php @@ -2,7 +2,7 @@ namespace App\Http\Middleware; -use Fideloper\Proxy\TrustProxies as Middleware; +use Illuminate\Http\Middleware\TrustProxies as Middleware; use Illuminate\Http\Request; class TrustProxies extends Middleware @@ -19,5 +19,5 @@ class TrustProxies extends Middleware * * @var array */ - protected $headers = Request::HEADER_X_FORWARDED_ALL; + 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; }