If you can avoid it, most people will not use file:
URIs because there are just so many quirky rules about what is and isn't allowed, but sometimes it's not up to you, you just have to support loading a HTML file or app from a file:
URI.
For those times, is there any comprehensive and up-to-date documentation or guide for what browsers do and don't allow for file:
URIs? There is information out there, but it is piecemeal. This question for example explains that you can't load an ES module over a file:
URI in Chrome, but you can in Firefox. But what about fetch()
, WASM, or other modern web technologies? Maybe they don't work over file:
, but do support data:
, if you can construct one with the right MIME type?
It would be very useful for those rare times when you just have to support running a web app from a local file:
URI, if there was a guide that laid out what works consistently across all browsers, so that if you stick with those few technologies your app will work. Does anyone know of anything like that? I've tried searching the web and MDN, but haven't found anything, but that could be because it seems like most search engines ignore the colon in file:
.