I'm building the APIs for my SPA using the SPA Authentication. I realized that when I apply any of the tenancy initialization middlewares such as InitializeTenancyByRequestData, I got the "CSRF token mismatch." issue. Is anyone facing the same issue?
Bug description
I'm building the APIs for my SPA using the SPA Authentication. I realized that when I apply any of the tenancy initialization middlewares such as InitializeTenancyByRequestData, I got the "CSRF token mismatch." issue. Is anyone facing the same issue?
Steps to reproduce
Expected behavior
Receive 419 "CSRF token mismatch" error response
Laravel version
11.18.1
stancl/tenancy version
3.8