Using HTTPS for local development
Last updated
Last updated
Use as an example:
By using -o
, http-server will open https://127.0.0.1:8080 in browser automatically.
Add the following line into /etc/hosts
Let's say there's a service running at
http://localhost:3000
, we don't have control for its tls config. So we are going to start another server to reverse proxy the previous one.
Run reverse proxy at 443
port
https://example.dev is working now
Here we use to reverse proxy