Skip to content

CSRF token #9

Answered by garethredfern
Artanisky asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there, did you make sure to set up your endpoints in the Laravel API .env file - make sure to change them to whatever you are using in your local setup:

SANCTUM_STATEFUL_DOMAINS=localhost:8080
SPA_URL=http://localhost:8080
SESSION_DOMAIN=localhost

See https://laravelvuespa.com/setup/laravel-setup/#install-sanctum

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Artanisky
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants