Menu

1 / 5

Firefox 153 Local Mode: Open Local HTML Files Over HTTPS Without a Server

DEV Community: frontend·Alan West·4 days ago
#5xY3JCTI
#devtofrontend#devto#dev#local#localhost
Reading 0:00
15s threshold

Firefox 153 added Local Mode to DevTools: it maps a folder on your disk to an https:// origin. You don't run npx serve or python -m http.server , and you don't touch mkcert. Open DevTools, point it at a folder, and https://shop.localhost/index.html loads straight from ~/code/shop .

The official docs pitch it in one line: "This prevents having to spawn a HTTP server to test a web page." I spent a while trying to poke holes in it. My take is that the docs oversell the HTTPS part, which localhost already gave you, and undersell per-project origins, which fix something that annoys me every day. Below is the setup, plus the limits that will send you back to Vite.

What Firefox Local Mode actually does

You register mappings. Each one has two fields:

Origin : a hostname Firefox serves over https:// , e.g. firefox.localhost

Local folder : the directory the files come from, e.g.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.