Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

435
Views
express-session not responding to request with "Cookie-Set" header

I have an nginx server, forwarding requests to a nodejs/express backend. The server has an ssl cert and I am connecting over https. I'm using the express-session module and the cookie configuration object looks like so,

{ secure: true, sameSite: true, httpOnly: true, domain: "example.com" }

I am also setting a proxy for the express server like so,

app.set('trust proxy', 1);

The X-Forward headers for nginx look like so,

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forward-Host $host;
proxy_set_header X-Forward-Proto $scheme;

Any suggestions? I've tried connecting over ngrok locally before I set the domain and that seemed to work, but that configuration still did not work for nginx.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!