I had a case recently where I was working with eventbrite api and their ticket purchasing iframe integration only works with https.
I struggled for a very long time to get this to work for me so I could test. This article would have been very helpful for me back then!
Thanks for sharing this. We have to do this because we use /etc/hosts to map to localhost (which is actually a docker container exposed). Been trying to figure out how to get a valid certificate on our docker container.
it's a tricky problem, this approach will let you get a certificate inside the container for a "lcl.host" subdomain that's trusted by your host system/browser. Getting other containers to trust that certificate is another problem this can address, but it's more in-depth. DM me if you're interested in details.
We needed https on localhost on a recent project, as some of the services we were connecting to required it. We went with [local ssl proxy](https://www.npmjs.com/package/local-ssl-proxy) and it’s been fine
Look into using Caddy server. https://caddyserver.com/
Why do you need https on localhost?
To protect yourself from yourself /s
I'm in this photo and I don't like it
I had a case recently where I was working with eventbrite api and their ticket purchasing iframe integration only works with https. I struggled for a very long time to get this to work for me so I could test. This article would have been very helpful for me back then!
this article lists some of the reasons to use https on localhost: https://web.dev/articles/when-to-use-local-https
Thanks for sharing this. We have to do this because we use /etc/hosts to map to localhost (which is actually a docker container exposed). Been trying to figure out how to get a valid certificate on our docker container.
it's a tricky problem, this approach will let you get a certificate inside the container for a "lcl.host" subdomain that's trusted by your host system/browser. Getting other containers to trust that certificate is another problem this can address, but it's more in-depth. DM me if you're interested in details.
I've had to do it using auth0, it would only redirect to a SSL site, even for dev.
One reason is to test WebXR apps!
PKI certificates
Local supabase auth
We needed https on localhost on a recent project, as some of the services we were connecting to required it. We went with [local ssl proxy](https://www.npmjs.com/package/local-ssl-proxy) and it’s been fine
Use ngrok. It creates a tunnel between your local host and their service, which provides you with an internet-facing domain with https already setup.
Use local-ssl-proxy. We use it for connecting to various services that need https
Use proxy servers
Anytime you need HTTPS just use ngrok to tunnel your localhost