Skip to content

Commit 158e0be

Browse files
committed
disable csrf
1 parent 3dc1c7e commit 158e0be

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bootstrap/app.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
health: '/up',
1212
)
1313
->withMiddleware(function (Middleware $middleware) {
14-
//
14+
$middleware->validateCsrfTokens(except: [
15+
'login',
16+
'register',
17+
]);
1518
})
1619
->withExceptions(function (Exceptions $exceptions) {
1720
//

0 commit comments

Comments
 (0)