Write Software Well · Sep 8, 2025
Rails on Localhost: Secure Context and Local HTTPS with Caddy
0Sign in to vote or save
This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
Localhost is treated as a trustworthy origin even without TLS, so all apps on localhost run in a secure context. This allows secure features to work in development. You can also run multiple apps on localhost with subdomains + ports to separate them. When you do need local HTTPS, use Caddy server.
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.