#CSRF TOKEN MISMATCH - NEXTJS X SANCTUM BREEZE API
11 messages · Page 1 of 1 (latest)
you're probabely using web.php routes, there is a middleware group on it that includes csrf protection.
use api.php
or you can explain more of what you're doing and what you want to accomplish.
Why do you want to disable CSRF?
Yeah, disabling CSRF on a nextjs app sounds like a horrible idea, csrf is there for a reason.
I didn't want to spend 500 hours to solve this issue so I can actually start with the whole project
Up to you of course, just saying, you're making your app vulnerable for exploits if you completely disable CSRF.
It's not a handshake tho, it's protection against a known exploitable thing. Like, you're then explicitly disabling security features, but you do you