From 1b98691fcadf8bd9012663f9cfb8bd716edf6f48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20Ioni=C8=9B=C4=83?= Date: Thu, 21 Nov 2024 16:52:01 +0200 Subject: [PATCH] proxy --- bootstrap/app.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bootstrap/app.php b/bootstrap/app.php index f857cf1..b635438 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -19,6 +19,8 @@ health: '/up', ) ->withMiddleware(function (Middleware $middleware) { + $middleware->trustProxies('*'); + // Fix for `Route [login] not defined` exception // @see https://github.com/filamentphp/filament/discussions/5226#discussioncomment-10555366 $middleware->redirectGuestsTo(fn () => Filament::getCurrentPanel()?->getLoginUrl() ?? route('front.index'));