node-http-proxy icon indicating copy to clipboard operation
node-http-proxy copied to clipboard

Upgrade-Insecure-Requests: 1

Open darekf77 opened this issue 2 years ago • 1 comments

Hi,

I've created project https://github.com/darekf77/vpn-split which is using node-http-proxy to proxy some hosts from my vpn provider to my other computers in local network...

basically I am using for each request redirection this proxy object like this :

  proxy.web(req, res, { 
     target: // target for request. 
     secure: false
});

..And it was working fine quite some time... but now.. I can't get into website that are implementing this header (and security mechanism) upgrade-insecure-requests: 1 (and whatever with this security thing is)

I've tried to remove this header or security thing related to upgrade-insecure-requests but no success...

Anyone.. any idea how to proxy on localhost websites with this security mechanism ?

Thanks.

darekf77 avatar Jul 22 '21 22:07 darekf77

also this is related to https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy

darekf77 avatar Jul 22 '21 22:07 darekf77