hi everyone i have two separated projects frontend(react js) backend(laravel 8). so i want to sent a post request to (/login) in web.php file and as laravel docs clarify i have to make axios.get(/sanctum/csrf-cookie) before axios.post(). My problem is that post return 'CSRF token mismatch' i have tried a lot of solutions but i still have the problem.
this is csrf-cookie network
this is login network
it seems that axios doesn't include xsrf-token in post automatically. please someone help me and clarify for if it necessary to use csrf in this case.