Cookie is not being set - Nodejs and express

I’m trying to set a cookie on the browser via httponly but is not being set. I deployed the server and the client on different hosts, and I think is maybe that but I can’t find a solution.

That’s how I configure the cookie object when it comes to sending the cookie to the browser:

res.cookie('refreshtoken', token, {
    httpOnly: true, 
    secure: true, 
    sameSite: "none"
})

How can I solve this problem?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.