stlite
stlite copied to clipboard
firefox support for cdn and vscode extension within the browser
If using the cdn link in html (link the example in the readme) and if opened in firefox it doesn't load:
Security Error: Content at path/to/index.html may not load data from https://cdn.jsdelivr.net/npm/@stlite/[email protected]/build/static/js/6073.384829d1.chunk.js.
The same behavior seems to happen in the dev environment of github (github.dev
) when using the vscode extension - it doesn't work in firefox, although it works on other browsers.
I am having the same issue when replicating the example in the README using Firefox. Have you found a solution?
anyone find a solution to this? firefox : Security Error: Content at http://localhost/stl.html may not load data from https://cdn.jsdelivr.net/npm/@stlite/[email protected]/build/static/js/6073.ade8ee62.chunk.js. only works in chrome and file served from online server or localhost not local file - would be great if you could use this as a standalone file
No solution for this yet...
Adding to this, I get the same behavior and the same error message. I'm seeing "not same-origin" as the actual cause in the console. "GET | https://cdn.jsdelivr.net/npm/@stlite/[email protected]/build/static/js/6073.ade8ee62.chunk.js". This error is typically because of mismatched http/https. To me the security certificate for the script url looks legit.
My app is hosted through Git Hub pages with a custom domain and "enforce HTTPS" enabled, but I had the same issue loading the page locally.
The app works fine in Chrome on a MacBook and Firefox mobile on iOS. The issue only appears in Firefox desktop on OSX. I haven't tested other desktop versions of Firefox.
GET /npm/@stlite/[email protected]/build/static/js/6073.ade8ee62.chunk.js undefined
Host: cdn.jsdelivr.net
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/119.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Same problem with a stlite app hosted on gh-pages, the app doesn't load and I get a
Security Error: Content at https://gh-pages-location/myapp.url may not load data from https://cdn.jsdelivr.net/npm/@stlite/[email protected]/build/static/js/8779.995e8fcf.chunk.js.
Using Firefox 124.0.1 on macOS