From c2a7efeb6a1286293cf1d1419deb0528a60fa580 Mon Sep 17 00:00:00 2001 From: Fernando <82854646+FernandosPerez@users.noreply.github.com> Date: Mon, 11 May 2026 00:58:19 -0600 Subject: [PATCH] Update trustProxies middleware to include headers --- bootstrap/app.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/app.php b/bootstrap/app.php index f2591880..cac53d92 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -13,7 +13,7 @@ return Application::configure(basePath: dirname(__DIR__)) health: '/up', ) ->withMiddleware(function (Middleware $middleware): void { - $middleware->trustProxies(at: '*'); + $middleware->trustProxies(at: '*', headers: \Illuminate\Http\Request::HEADER_X_FORWARDED_FOR | \Illuminate\Http\Request::HEADER_X_FORWARDED_HOST | \Illuminate\Http\Request::HEADER_X_FORWARDED_PORT | \Illuminate\Http\Request::HEADER_X_FORWARDED_PROTO); }) ->withExceptions(function (Exceptions $exceptions): void { //