Added XF CSRF compatibility

This commit is contained in:
2026-05-25 12:23:10 +02:00
parent 250509055b
commit b361f07954
5 changed files with 27 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ return Application::configure(basePath: dirname(__DIR__))
health: '/up',
)
->withMiddleware(function (Middleware $middleware): void {
$middleware->encryptCookies(except: ['xf_session','xf_user']);
$middleware->encryptCookies(except: ['xf_session','xf_user','xf_csrf']);
$middleware->alias([
'xf.auth' => \App\Http\Middleware\CheckXenForoPermissions::class,
]);