I am getting the message: "CSRF token mismatch. error while using laravel sanctum api with Next.js app.
POST https://xyzdomain.api/login 419
Uncaught (in promise) Error: Request failed with status code 419
at e.exports (7269-1f09c32afb5696ba.js:1:5531)
at e.exports (7269-1f09c32afb5696ba.js:1:7980)
at XMLHttpRequest.g (7269-1f09c32afb5696ba.js:1:782)
Everything is working fine on localhost, but getting the above error while I make the app live on the production server.