title: How to Remove Client Headers in Nginx before passing request to upstream server?
body: <p>The Upstream server is wowza , which does not accept the custom headers if I don't enable them on application level.</p>
  
  <p>Nginx is working as a proxy server, from the browser I want to send few custom headers which should be received and logged by Nginx Proxy  but before forwarding request to upstream server those headers should be removed from the request.</p>
  
  <p>So upstream server never come to know that there where any custom headers.</p>
  
  <p>I tried <code>proxy_hide_header</code> as well as <code>proxy_set_header "&lt;header&gt;" ""</code> , but seems like they apply to response headers not the request headers.</p>
  
  <p>And even if I accept to enable the headers on wowza, then again I am not able to find a way to enable headers at server level for all application. Currenlty I have to add headers to each newly created application which is not feasible for me to do.</p>
  
  <p>Any help would be appreciated.</p>