Questions tagged [csrf-token]

Please utilize this tag when inquiring about csrf (Cross-site request forgery) and token generation.

Having trouble with Laravel Sanctum CSRF and NextJs 14 integration

Currently, I am facing a challenge with communication between my Laravel server and Next.js frontend. An error 419 related to CSRF is encountered when sending requests like login requests. I want to highlight that tests were carried out on the same Larave ...

Issue with CSRF Token discrepancy between cookies and HTML

Is there a proper way to retrieve the CSRF Token? In my Vue SPA, I am using Axios for login. I have converted everything to Vue components except for the Routes generated by `php artisan ui:auth`, so now I cannot use `@csrf` on my forms and have to send t ...