stlite icon indicating copy to clipboard operation
stlite copied to clipboard

firefox support for cdn and vscode extension within the browser

Open franciscobmacedo opened this issue 1 year ago • 5 comments

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.

franciscobmacedo avatar Apr 25 '23 15:04 franciscobmacedo

I am having the same issue when replicating the example in the README using Firefox. Have you found a solution?

patrickm663 avatar May 12 '23 16:05 patrickm663

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

quantumalchemy avatar Oct 27 '23 15:10 quantumalchemy

No solution for this yet...

franciscobmacedo avatar Nov 02 '23 11:11 franciscobmacedo

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

jessemorros avatar Nov 08 '23 14:11 jessemorros

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

maxibor avatar Apr 10 '24 12:04 maxibor