From 5bc1de5affc928128de8e73582841ceb01b377f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arthur=20Parient=C3=A9?= <41431456+arthurpar06@users.noreply.github.com> Date: Wed, 14 Feb 2024 18:51:40 +0100 Subject: [PATCH] Fix CSRF Protection (#1772) Co-authored-by: Nabeel S --- app/Http/Kernel.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index d4b3b9a26..0dcfa296a 100755 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -11,6 +11,7 @@ use App\Http\Middleware\SetActiveTheme; use App\Http\Middleware\TrustProxies; use App\Http\Middleware\UpdatePending; +use App\Http\Middleware\VerifyCsrfToken; use Illuminate\Auth\Middleware\Authenticate; use Illuminate\Auth\Middleware\Authorize; use Illuminate\Auth\Middleware\EnsureEmailIsVerified; @@ -46,7 +47,7 @@ class Kernel extends HttpKernel AddQueuedCookiesToResponse::class, StartSession::class, ShareErrorsFromSession::class, - // VerifyCsrfToken::class, + VerifyCsrfToken::class, SubstituteBindings::class, SetActiveTheme::class, SetActiveLanguage::class,