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
Percy
Percy12mo ago
Project ID: N/A
Brody
Brody12mo ago
I think this is because you aren't trusting railways proxy headers, look into doing that first
nurullah7733
nurullah773312mo ago
Where use proxy headers?
Brody
Brody12mo ago
your app sits behind a proxy that railway runs, look into trusting the proxy headers
Want results from more Discord servers?
Add your server