amrnn90 / breeze-nuxt

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

The developers of this application should please contact me. I need help with the deployment. Your effort will of course be paid... #32

Closed mydidefix closed 7 months ago

mydidefix commented 7 months ago

The developers of this application should please contact me. I need help with the deployment. Your effort will of course be paid. Please contact me within the next 7 days if you are interested. Question: Can your module also handle 2 different top domains and do I have to work with subdomains because of sanctum. Your software runs with 2 TopLevel Domain I have no CORS problems only the login does not work error message "CSRF token mismatch.". I have noticed the following. After comparing the request csrf-cookie (both tokens) and the next request login compared the cookies in the request cookies are correct but in the response cookies the laravel_session are not the same.

So the problem is that laravel_session has lost the value of csrf-cookie (laravel_session) when calling the login page in response cookies. there is a different value in the laravel_session. Would using subdomains solve the problem. With kind regards Dieter Deutsch

mydidefix commented 7 months ago

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