-
Hey, I am having the similar issue that is presented here : #353
And this is from Nuxt:
I have set SESSION_DOMAIN to ".onlyme.local" in my .env. I keep getting : nuxt-auth-sanctum:csr:warn CSRF token mismatch, check your API configuration My nuxt config
I access my front end via localhost:3000, the cookies arent being set, I have followed the stuff from the discussion I sent above but no use... I am using Breeze's starter kit for the API. These are 2 seperate containers join to the same network... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
After some messing around, I have set my SANCTUM_STATEFUL_DOMAINS to localhost:3000, I have also brought back SESSION_DOMAIN to localhost and the Cookies are now being set but I still get the CSRF mismatch... My .env
|
Beta Was this translation helpful? Give feedback.
Hey, I have managed to fix it. What I did is also add mt nuxt domain into /etc/hosts
So I ended up having:
api.onlyme.local 127.0.0.1
onlyme.local 127.0.0.1
So it seems to work for now. Thank you for your reply