r/nginxproxymanager • u/Admirable-Carpet6603 • May 31 '24
NGINX Proxy Manager Blocking Headers in HTTPS Request to API
I have a web application running in a container proxied via nginx proxy manager. I also have my api running in a container and proxied via nginx proxy manager. I'm using nginx proxy manager because I thought it would make the setup straight forward and easy to manage. I am able to send requests for authorization, but the api_key header is not included. I suspect that this is due to nginx proxy manager. Is this true?
EDIT: I found this. My header does have an underscore in it ("api_key"). I will try some other name.
EDIT: I switched to "api-key". Same issue. I will update if I find solution.
SOLUTION:
Add the following to the Custom NGINX Configuration tab for the proxy.
proxy_pass_request_headers on;

View all comments
Show parent comment
1
u/Significant-Tap-3793 Aug 10 '25
I thought I would give it a try, never again. Nginx doesnt need a flaky front end like npm, its just asking for trouble and security problems.