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
X-Request-ID
idToken
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.
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
X-Request-ID
idToken
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.