How to correctly configure secure cookies

Hey @dan @anurag,

I’m hoping you can help me out again.

I’ve got 2 Node Web services (Nuxt frontend and Express backend, different domains) on Render that are running well with no apparent issues except… cookies that are generated in the backend are not being received on the frontend (set-cookie header is missing). My cookie is configured as such:

cookie: {
  maxAge: 24 * 60 * 60 * 1000, // Expires in 24hrs
  httpOnly: true,
  sameSite: 'none',
  secure: true
}

There are some reports online that load-balanced setups need to proxy any cookies (https://serverfault.com/questions/601498/cookies-not-setting-in-load-balanced-environment) - could this potentially be the issue?

Do you have any insight as to how to securely configure cookies on your Web Services so that they can be sent between those Web Services?

Thanks in advance!

Hey,

I am facing the same problem. Did you manage to overcome this @timelytree?

Best regards.

Hey @Christos_Alexiou,

We actually decided to roll our own backend around the time of my original posting so unfortunately I can’t provide any advice.

Best of luck!! :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.