I'm trying to set a cookie when a user logs into the application but i can't seem to get the cookie to get stored on chrome or firefox but it does work on postman.
Here is the part of the code when i try to set my cookie.
res.cookie("jwt", token, {
domain: ".localhost",
path: "/",
expires: new Date(
Date.now() + process.env.JWT_COOKIE_EXPIRES_IN * 24 * 60 * 60 * 1000
),
httpOnly: true
});
POSTMAN output :
And my CORS setup :
Note : my server is on port 3900 and my client is on 3000