From 1da042baac1263701b0493de344c50580133a731 Mon Sep 17 00:00:00 2001 From: Andrea Pavone Date: Mon, 11 Nov 2024 22:46:01 +0100 Subject: [PATCH] Add trusted proxies Signed-off-by: Andrea Pavone --- bootstrap/app.php | 1 + 1 file changed, 1 insertion(+) diff --git a/bootstrap/app.php b/bootstrap/app.php index e5afb84..19f24d2 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -23,6 +23,7 @@ return Application::configure(basePath: dirname(__DIR__)) Request::HEADER_X_FORWARDED_PROTO | Request::HEADER_X_FORWARDED_AWS_ELB ); + $middleware->trustProxies(at: '*'); }) ->withExceptions(function (Exceptions $exceptions) { //