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?
5 Replies
Project ID:
N/A
I think this is because you aren't trusting railways proxy headers, look into doing that first
Where use proxy headers?
your app sits behind a proxy that railway runs, look into trusting the proxy headers