From 01cf18b5409ba22192c51658f52d00edc7938cc3 Mon Sep 17 00:00:00 2001 From: ale Date: Mon, 7 Jul 2025 18:04:21 -0300 Subject: [PATCH] Arreglo de constante deprecada --- app/Http/Middleware/TrustProxies.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Http/Middleware/TrustProxies.php b/app/Http/Middleware/TrustProxies.php index a63582f..f58fccf 100644 --- a/app/Http/Middleware/TrustProxies.php +++ b/app/Http/Middleware/TrustProxies.php @@ -3,7 +3,7 @@ namespace App\Http\Middleware; use Illuminate\Http\Middleware\TrustProxies as Middleware; -use Illuminate\Http\Request; +use Symfony\Component\HttpFoundation\Request; class TrustProxies extends Middleware { @@ -19,5 +19,8 @@ class TrustProxies extends Middleware * * @var int */ - 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; }