What impact will this have on web development without a web server? It sounds like you won't be able to load CSS or JS.
What impact will this have on web development without a web server? It sounds like you won't be able to load CSS or JS.
As of today's upgrade opening file:///home/skx/bookmarks.html no longer loads the JS/data. Breaking the system:
https://github.com/skx/bookmarks.public
Adding a local webserver is fine, but it's a complication I'd managed to avoid.
For reference this is the error I get:
> Cross-Origin Request Blocked:
> The Same Origin Policy disallows reading the remote resource at
> file:////home/skx/bookmarks.data.
> (Reason: CORS request not http).
The release note refers to script access (XHR, DOM access across windows).
Script running in a page loaded from file:// will not be able to access the DOM or text of any other file:// URLs, other than the one it's running in.
php -S localhost:8080
Still it's not great.
That said, if they work in Chrome right now they will also work in Firefox 68.
Either way, exposing local files to an internet proxy just to open them in a browser is overkill. Lots of script runtimes come with their own lightweight HTTP servers nowadays. For example, I use Python's with "py -m http.server".