intercept and modify upgrade-insecure-request header?

Reinis Rozitis r at roze.lv
Thu Feb 14 17:00:56 UTC 2019


> We use Nginx as a reverse proxy to our application servers, can I intercept
> this header and just remove it? 

Sure, to the proxy_pass block add:
proxy_hide_header upgrade-insecure-request; 

http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_hide_header

rr



More information about the nginx mailing list