I'm doing an axios request to my backend, and set a cookie :
axios.get(`http://mybackend/somepage`)
.then((response) => {
res.cookie('token', response.data.token)
res.send(`click here <a href="http://mybackend/profile">profile</a>`)
})
On my backend, I use express with "cookie-parser".
Clicking the link to the backend, I get this with console.log(req.cookies) : "[Object: null prototype] {}".
Looking at the request headers, the cookie is not even sent.
I don't have this problem when I test on localhost.
Is it because it's not possible to exchange cookies between two domains (in this case 2 heroku apps) ?