I am running an NGINX server pointing to my proxy server which is running on Node. I am redirecting to app/ from node using express redirect. I am also passing a custom header using res.set("X-Custom-Header","XXX"); before the redirect. But the same header is not retrieved on app/ route on NGINX. Is there anything I am missing?
1 Answer
By default, nginx does not pass headers containing underscores.
Try:
underscores_in_headers on;
See this document for details.
nginxfrom the client.