Set-Cookie not set cookies in my browser (Vue + Sanctum)

  csrf, laravel, laravel-sanctum, reactjs

I use Laravel sanctum to make auth With ReactJS
in cors.php i 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 use Postman i get the Set-Cookie Valuei , but when use browser its not setted in my browser under Application->cookies tab

laravel domain

    http://www.react.test/

React domain

    http://localhost:3000/

Source: Laravel

Leave a Reply