Level 1
api/sanctum/csrf-cookie is not correct url, the correct url is just sanctum/csrf-cookie
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Greetings!
I have this nextjs app and I am creating a login feature with laravel as my api. I already installed laravel jetstream and sanctum using composer but this error still persists: api/sanctum/csrf-cookie 404 not found.
Thanks for the help
Please or to participate in this conversation.