From 399422a03d96f5b5142834333be4d1e83c141b7b Mon Sep 17 00:00:00 2001 From: Pedro Cunha Date: Fri, 29 Nov 2024 00:45:52 +0000 Subject: [PATCH] feat!: remove TrustProxies setup since that breaks the entire app --- bootstrap/app.php | 5 ----- config/trustedproxies.php | 5 ----- 2 files changed, 10 deletions(-) delete mode 100644 config/trustedproxies.php diff --git a/bootstrap/app.php b/bootstrap/app.php index f81b99fb..91bfd242 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -29,11 +29,6 @@ 'solder_mods' => \App\Http\Middleware\SolderMods::class, 'solder_users' => \App\Http\Middleware\SolderUsers::class, ]); - - $middleware->trustProxies( - at: config('trustedproxies', []), - headers: Request::HEADER_X_FORWARDED_FOR | Request::HEADER_X_FORWARDED_PROTO - ); }) ->withExceptions(function (Exceptions $exceptions) { // diff --git a/config/trustedproxies.php b/config/trustedproxies.php deleted file mode 100644 index bc289f00..00000000 --- a/config/trustedproxies.php +++ /dev/null @@ -1,5 +0,0 @@ -