Can forge tunnel use HTTPS?

Hi everyone.

I am currently building my app with Vite and am using HTTPS instead of HTTP. I haven’t found a way to make forge tunnel send requests to https:/localhost:{port} instead of http:localhost:{port}.
Is this even possible?

Hi Moritz!

Forge tunnel doesn’t support serving your app over HTTPS. Using HTTPS on localhost would require issuing and trusting a self-signed certificate without providing any security benefits. Most of the browser functionality that requires HTTPS works normally on http://localhost:NNNN - see How to use HTTPS for local development for more information.

The easiest way to use HTTPS with Forge tunnel if you actually need it is a reverse proxy like ngrok - point that to your localhost:NNNN address and use the URL it generates instead.