Run local project on HTTPS locally

How to run any local project on HTTPS without any hassle

Modern browsers expect HTTPS. Cookies with Secure, OAuth callbacks, Service Workers, HTTP/2, and many APIs either require or work better with HTTPS. I created local-https, a simple tool to run any local project on HTTPS with a custom local domain. No browsers hacks No changing your app’s code Works on macOS and Linux GitHub: https://github.com/vikas-0/local-https What is local-https? local-https is a small Ruby CLI that: Generates trusted local TLS certificates with mkcert Maps your domain to 127.0.0.1 in /etc/hosts Runs an HTTPS reverse proxy (WEBrick) that forwards to your local app Supports multiple domains via SNI Optionally redirects HTTP (port 80) to HTTPS (port 443) You get a local URL like https://myapp.test that points to your app on localhost:3000. ...

August 21, 2025 · 3 min · Vikas Kumar