News for hackers. Stuff that matters.
Re:Show HN: Running a simple local HTTP server in a web page by fregante on Sunday October 31, 2021 @04:04AM (#29055321)
For those who don’t understand what it’s doing (like me at first):

You first have to host these index.html and sw.js on a regular server (or use the URL in the readme) and then this service will serve a folder of your choice directly from your computer.

This is if you ran your trusty Python server from the CLI, except you did it from the browser, with an unchangeable host:port

The folder will appear to be published from the server that hosts that sw.js file.

Re:Show HN: Running a simple local HTTP server in a web page by e12e on Sunday October 31, 2021 @07:46AM (#29056296)
> You first have to host these index.html and sw.js on a regular server

I guess no server worker from a file://-url?

Re:Show HN: Running a simple local HTTP server in a web page by tyingq on Sunday October 31, 2021 @08:28AM (#29056489)
Chrome tells me "Failed to register a ServiceWorker: The URL protocol of the current origin ('null') is not supported." when I try it.