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 almost 2 years 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 almost 2 years 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 almost 2 years 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 almost 2 years 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 almost 2 years ago


Railway
BOT

a year 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 11 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...