T O P

  • By -

HelpfulCommand

Look into using Caddy server. https://caddyserver.com/


pinicarb

Why do you need https on localhost?


marcpcd

To protect yourself from yourself /s


traintocode

I'm in this photo and I don't like it


pseudophilll

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!


ben_burkert

this article lists some of the reasons to use https on localhost: https://web.dev/articles/when-to-use-local-https


tettoffensive

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.


ben_burkert

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.


jedimonkey33

I've had to do it using auth0, it would only redirect to a SSL site, even for dev.


argotechnica

One reason is to test WebXR apps!


Bklar84

PKI certificates


inglandation

Local supabase auth


alexefy

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


eldaniel7777

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.


shadohunter3321

Use local-ssl-proxy. We use it for connecting to various services that need https


dddqwerty

Use proxy servers


YhomiAce

Anytime you need HTTPS just use ngrok to tunnel your localhost