Welcome! Log In Create A New Profile


Headers Being Dropped

Posted by tristanJ 
Headers Being Dropped
January 07, 2020 10:18PM
Good evening all,

I'm stuck and would really appreciate some help. I'm using the njs-module to do header injection when a request hits my nginx service and then send that request with the new header to my backend service. The issue I'm having is that when I send my request on Chrome/Edge using jQuery nginx doesn't seem to be receiving the two custom headers I'm sending. However, when I use CURL it does receive the headers and everything works as expected.

the headers that are being dropped (the custom headers) are


I also tried adding these directives

proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;

as well as

client_header_buffer_size 10k;
underscores_in_headers on;

the error I get when I fire the request from the browser is

422 (Unprocessable Entity)

the request hits my backend service but the service complains that its missing the headers because nginx doesn't receive the custom headers and as such can't inject the headers required by the backend service.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 71
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready