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

Allow to proxy to https target and other protocols #46

Open
JanStevens opened this issue Feb 13, 2025 · 0 comments
Open

Allow to proxy to https target and other protocols #46

JanStevens opened this issue Feb 13, 2025 · 0 comments

Comments

@JanStevens
Copy link

Hi,

I've got a use case where I need localias to proxy to https://localhost:3000 and ignore the self signed certificate that is attached to the web server running on https 🙈 .

The reason why is because I'm developing a capacitor application where:

  • For web I want to use https://capacitor-app.local so I can easily test on real mobile devices in my network
  • For android / ios simulators I need to use the IP address directly and cannot use localias (mDNS does not work well with emulators). And they access the dev server using https://ip:3000.

This means that for the android / ios simulator I need to provide my own self signed certificate while I also want to be able to use localias so I can access the web portion in a easy way.

Since capacitor is web based, a lot of Web API's depend on having a HTTPS connection.

My dev server is vite based which does not support serving both http and https.

I hope this is clear, I know its a bit niche but would be awesome if we could define the protocol to proxy to instead of always assuming http.

Regards,

@JanStevens JanStevens changed the title Allow to proxy to https target Allow to proxy to https target and other protocols Feb 13, 2025
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

1 participant