I checked and try to implement https://laravel.com/docs/11.x/passport#sumption-your-api-with-javascript this part in my application, I use "Metronic 8 demo1" with vue. The problem is that laravel_token cookie exists, I checked, but it is not included in the request headers. Can you help me fix it and make the standard flow work properly?
Hi Vahan,
If you want to include cookies automatically on every request you should enable withCrendentials axios property as shown below:
axios.defaults.withCredentials = true;