node-http-mitm-proxy
node-http-mitm-proxy copied to clipboard
Downgrade HTTPS to HTTP
I am looking to make a request from an HTTPS endpoint to a HTTP endpoint. Basically https://example.com ----> localhost:3000 I have tried setting the ctx.proxyToServerRequestOptions.protocol to HTTP but it gives me an error that it isn't supported.
- This function is where the library start making a request from the proxy server to the destination server
- And this is where the library establishes the request
- I've implemented a feature similar to your case with this library, my solution is to pull the library, modify the above code and publish a new npm package
- If you need more details, please feel free to ping me 👍🏻 @Yamaha32088