amrnn90 / breeze-nuxt

An application / authentication starter kit frontend in Nuxt3 for Laravel Breeze.
MIT License
198 stars 33 forks source link

in $larafetch.ts no cookies can be read out. it is undefined when transferring to the login page, therefore the error message "CSRF token mismatch." #33

Closed mydidefix closed 7 months ago

mydidefix commented 7 months ago

in $larafetch.ts no cookies can be read out. it is undefined when transferring to the login page, therefore the error message "CSRF token mismatch." Thanks for the help

mydidefix commented 7 months ago

Problem on the server was solved: enter in .env: SESSION_DOMAIN='.domain' SESSION_SECURE_COOKIE=true