You have an error in the token name X-CSRF-TOKEN should be X-XSRF-TOKEN.
Also looks like you're using Postman. I have not had to send the token via Postman as it appears to do it automatically for me.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
What I have done:
called API /sanctum/csrf-cookie
copied X-CSRF-TOKEN value from the response cookie
https://ibb.co/N64RrDt
Tried to send X-CSRF-TOKEN as header.
https://ibb.co/HnDRmDK
But still receiving csrf token mismatch
#PS: I am not looking to bypass CSRF token requirement by adding the register URL on VerifyCsrfToken
Please or to participate in this conversation.