Cookie deleted after deployment
phongtran911
PROOP

2 years ago

I don't know why when i use development mode my cookie persits after deployment.
but when i deploy it to prod with 2 replica my cookie disappear after deploy success

Solved

5 Replies

2 years ago

Hello,

This is likely caused by your service not being aware that it's being run behind a proxy, Please look into how you would make your application code aware it's running behind a proxy, perhaps a middleware of sorts?


Status changed to Awaiting User Response Railway over 1 year ago


phongtran911
PROOP

2 years ago

yes i am using cloudflare as proxy.
can you give me some advance how to fix it, thank you


Status changed to Awaiting Railway Response Railway over 1 year ago


2 years ago

Your application is also running behind a proxy on Railway.

But unfortunately we wouldn't be able to offer coding help here, I'm sure there are plenty of great guides or Docs that would cover this as it wouldn't be specific to Railway or Cloudflare.


Status changed to Awaiting User Response Railway over 1 year ago


phongtran911
PROOP

2 years ago

thank you for your reply.
it should be great if you can give me some links


Status changed to Awaiting Railway Response Railway over 1 year ago


2 years ago

I'm sorry but I wouldn't have any links for this on hand.


Status changed to Awaiting User Response Railway over 1 year ago


Railway
BOT

7 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 7 months ago


Loading...