2 ms·
...and then you'll find out that all kinds of fancy JS features don't work any more because of something called a "secure origin"! Soon after you end up in a ra
by jeroenhd 5y ago
...and then you'll find out that all kinds of fancy JS features don't work any more because of something called a "secure origin"! Soon after you end up in a rabbit hole of acronyms like CORS, XHR, CSP, TLS, HSTS, (m)DNS, WSS and HTTPS, and soon enough you'll be copy/pasting a hundred of lines of configuration just to make your website work like it did on localhost.
I enjoy the ease of use that the special privileges localhost was given in browsers, but I'm 100% sure it's a pitfall for starting developers. It's still confusing to me that someone capable of developing a website needs an explainer on how basic computer networking works, but I guess other people learn about computers top-down rather than bottom-up. I have no idea what all of these servers are (most of them seem Javascript based?) but I'd expect someone knowing how to deal with a piece of complex server software like that to at least know where to find their machine's IP address!