#csrf
2 messages · Page 1 of 1 (latest)
Share more of your config and the exact error. API routes don’t generally use a session and doesn’t need CSRF
2 messages · Page 1 of 1 (latest)
Hello, I have a problem in
Larval. I want to create a token api.
I have created everything required, but I get a problem that Page Expired means that csrf is required.
However, I have put an exception for csrf through
protected $except = [
'api/*',
];
in VerifyCsrfToken, but it also does not work.
Share more of your config and the exact error. API routes don’t generally use a session and doesn’t need CSRF