Ignore content-type while forwarding to backend proxy

Roland RoLaNd r_o_l_a_n_d at hotmail.com
Wed Dec 24 06:53:13 UTC 2014


thank you for the advice!
i tried doing that before though it did not work so i thought there could be another solution..in any case tried that again, set it right before the proxypass condition and it's still passing the type through...may i show u my config to see what might be overrirding that ? 

> Date: Tue, 23 Dec 2014 18:42:50 +0300
> From: mdounin at mdounin.ru
> To: nginx at nginx.org
> Subject: Re: Ignore content-type while forwarding to backend proxy
> 
> Hello!
> 
> On Tue, Dec 23, 2014 at 05:10:09PM +0200, Roland RoLaNd wrote:
> 
> > one of my apps, specifically those on IOS forwarded a 
> > content-type header..this is causing my backend server to mess 
> > up its security signature check....
> > i need to be able to ignore content-type headers...
> > assigning the header as empty "" does not work, 
> > (proxy_set_header Accept-Encoding "";)and also tried mapping the 
> > content-type and using the variable... though that did not work 
> > either as backend is very strict in that regard...
> > 
> > i need to be able to ignore it completely...
> > i tried adding proxy_hide_header Content-Type;
> > 
> > and tested,it's still sending content-type while directing 
> > traffic to backend..
> > 
> > any advice?
> 
> To control headers sent by nginx to backends you have to use the 
> "proxy_set_header" directive.  If you want to hide Content-Type, 
> use this:
> 
>     proxy_set_header Content-Type "";
> 
> More information can be found in the documentation here:
> 
> http://nginx.org/r/proxy_set_header
> 
> -- 
> Maxim Dounin
> http://nginx.org/
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20141224/f28a3f0e/attachment.html>


More information about the nginx mailing list