From a32e410314d206f3bcc054b9bf6e644fb1ea4f6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Wed, 26 Aug 2026 10:27:51 +0200 Subject: [PATCH] sec(csrf): add PreventRequestForgery to web-ajax middleware group [AUD-SEC-011] --- bootstrap/middlewares.php | 1 + 1 file changed, 1 insertion(+) diff --git a/bootstrap/middlewares.php b/bootstrap/middlewares.php index 0c57be34..a9531e4b 100644 --- a/bootstrap/middlewares.php +++ b/bootstrap/middlewares.php @@ -78,6 +78,7 @@ return function (Middleware $middleware) use ($redirectGuests, $redirectUsers): AddQueuedCookiesToResponse::class, StartSession::class, AuthenticateSession::class, + PreventRequestForgery::class, SubstituteBindings::class, SecureHeaders::class, ]