I'm working on an Android project, and I make Laravel login system using Sentinel. I am wanting to connect Laravel with Android - it always shows me the error
token mismatch.
I don't want to except my route.
I'm working on an Android project, and I make Laravel login system using Sentinel. I am wanting to connect Laravel with Android - it always shows me the error
token mismatch.
I don't want to except my route.
Sounds like you understand it's a CSRF token issue, have you verified that it is being sent in your request headers?
You should see X-CSRF-TOKEN: your token...
If you don't want to disable CSRF tokens, then you will need to retrieve the CSRF in one request, then pass the retrieved token along with your POST request.
Please refer to this answer