I'm implementing an Express app that sets cookies with
secure: true
. For the longest time I couldn't figure out why the cookies were not being returned by my server. Turns out I had to do
app.set("trust proxy 1")
to tell express that my server was being accessed behind a proxy. Please document this!