Hello,<br><br>I'm using Nginx as a front end to my node.js application, nginx proxying https request to my app.<br>When the browser gets the response back, instead of pure json ({"error":"query error","message":"Parameter(s) missing: user,password"}), I receive something like:<br>
<br>47<br>{"error":"query error","message":"Parameter(s) missing: user,password"}<br>0<br clear="all"><br>I use 'more_clear_headers' module but do not have any luck.<br><br>
This is the config I use:<br><br>server {<br> listen 443;<br> server_name <a href="http://my.server.com">my.server.com</a>;<br> ssl on;<br> ssl_certificate certificate.pem;<br> ssl_certificate_key privatekey.pem;<br>
<br> keepalive_timeout 70;<br><br> location / {<br> more_clear_headers 'Content-Length'; # Does not work as I would expect<br> proxy_pass <a href="https://localhost:8443">https://localhost:8443</a>;<br>
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br> proxy_set_header Host $http_host;<br> proxy_buffering off;<br> proxy_buffers 8 8k;<br> } <br>}<br><br>Would you have any idea ?<br>
Thanks a lot for your help,<br>
<br>-- <br>Luc<br>