nurullah7733
cookie not save in browser
HI, i am new to railway.app. I already deploy my express js application in railway.app. all are perfect but cookie not set any browser like chrome, egde etc. my cookie configuration is below here
Response.cookie("token", token, {
maxAge: 1000 * 60 * 60 * 24 * 30, // 1 month
httpOnly: true,
sameSite: "none",
path: "/",
secure: process.env.NODE_ENV === "production",
});
please help me?
6 replies