←back to thread

287 points jamesbvaughan | 1 comments | | HN request time: 0.345s | source
Show context
Dwedit ◴[] No.41084078[source]
What the hell browser makers... Make it so that file:// URLS are extremely locked down and doesn't have enough rights to even fetch files in the same directory (or even itself), yet grant localhost URLs full permissions...

There's a reason why local web applications aren't a collection of HTML and JS files, and are instead full copies of the Chromium browser.

replies(2): >>41084173 #>>41084188 #
1. NavinF ◴[] No.41084173[source]
What are you talking about? The OP made requests from his Bun server. CORS would obviously break any request made directly from js in the browser