except broadcasting/auth from csrf token

This commit is contained in:
2026-02-14 10:42:30 +01:00
parent f32dee8e58
commit 3b304959a9
+3
View File
@@ -14,6 +14,9 @@ return Application::configure(basePath: dirname(__DIR__))
) )
->withMiddleware(function (Middleware $middleware): void { ->withMiddleware(function (Middleware $middleware): void {
$middleware->statefulApi(); $middleware->statefulApi();
$middleware->validateCsrfTokens(except: [
'broadcasting/auth',
]);
}) })
->withExceptions(function (Exceptions $exceptions): void { ->withExceptions(function (Exceptions $exceptions): void {
// //