From 7b008afab846ec248fd85008074b45bedcb4c51c Mon Sep 17 00:00:00 2001 From: Chimezie Enyinnaya Date: Tue, 10 Sep 2024 10:04:22 +0100 Subject: [PATCH] trusted proxy --- bootstrap/app.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstrap/app.php b/bootstrap/app.php index 7b162da..15a7710 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -6,12 +6,12 @@ use Illuminate\Foundation\Configuration\Middleware; return Application::configure(basePath: dirname(__DIR__)) ->withRouting( - web: __DIR__.'/../routes/web.php', - commands: __DIR__.'/../routes/console.php', + web: __DIR__ . '/../routes/web.php', + commands: __DIR__ . '/../routes/console.php', health: '/up', ) ->withMiddleware(function (Middleware $middleware) { - // + $middleware->trustProxies(at: '*'); }) ->withExceptions(function (Exceptions $exceptions) { //