Object: null prototype {} with withCredentials axios + express

I’m trying to use my cookie created by my backend, but when I make the request the req.cookies is: [Object: null prototype] {}

How I’m creating my cookie (backend):

 const domain =
        process.env.FRONTEND_DOMAIN_TO_SHARE_COOKIES === "localhost"
            ? false
            : process.env.FRONTEND_DOMAIN_TO_SHARE_COOKIES;
    const secure =
        process.env.FRONTEND_DOMAIN_TO_SHARE_COOKIES === "localhost"
            ? false
            : true;

    res.cookie(cubikSessionCookieName, token, {
        domain,
        secure,
    });

How I’m making the request(front):

 axios.get(`my-endpoint`, {withCredentials: true})

and when I use req.cookies in my middleware I have it as null.

And if I make the request by the browser everything works as expected.. It’s something between front and back, but I don’t know where it is..