'why there are no cookies in my browser after axios.get(/sanctum/csrf-cookie)
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|


