I am using Laravel sanctum to make auth With ReactJS in cors.php. I have set these values
'paths' => ['api/*', 'api/csrf-cookie','/login'],
'supports_credentials' => true,
sanctum.php
'prefix'=>'api'
in React I use axios with credintials
axios.get('http://www.react.test/api/csrf-cookie').then(response => {
console.log(response);
}, { withCredentials: true });
when using Postman, I get the Set-Cookie Value , but when I try to use browser its not set in my browser under Application->cookies tab
- Laravel domain
http://www.react.test/
- React domain
http://localhost:3000/