Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downgrade HTTPS to HTTP #293

Open
Yamaha32088 opened this issue Aug 11, 2023 · 1 comment
Open

Downgrade HTTPS to HTTP #293

Yamaha32088 opened this issue Aug 11, 2023 · 1 comment

Comments

@Yamaha32088
Copy link

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.

@kics223w1
Copy link

  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@Yamaha32088 @kics223w1 and others