Closed Zhythero closed 1 year ago
Hi @Zhythero , let me check. Thank you!
Hi @Zhythero , can you try updating SANCTUM_STATEFUL_DOMAINS
to this?
SANCTUM_STATEFUL_DOMAINS=localhost:5174,localhost,brian_repuesto.applicant.test,applicant.test
Unfortunately the issue still persists.
I'm sorry @Zhythero , let me replicate the issue.
Btw, with Sanctum, in order to make the authentication work on SPAs, it should share the same top level domain with the API.
But let me check what we can do here. Sorry for the trouble. @Zhythero
Hi @Zhythero , can you try this solution?
in /frontend
can you run vite --host=brian_repuesto.applicant.test
instead of npm run dev
?
Thank you!
Also, please update this .env SANCTUM_STATEFUL_DOMAINS=brian_repuesto.applicant.test
and READme has been updated, kindly please pull to the latest. Thank you for your patience!
Hi Brian,
I'm currently having an issue with the registration form. Whenever clicking submit, a 419 CSRF Token Mismatch occurs.
Current
.env
values:The laravel app is being served at http://brian_repuesto.applicant.test and the front-end at http://localhost:5174