Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firefox support for cdn and vscode extension within the browser #556

Open
franciscobmacedo opened this issue Apr 25, 2023 · 5 comments
Open

Comments

@franciscobmacedo
Copy link

franciscobmacedo commented Apr 25, 2023

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/mountable@0.31.0/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.

@patrickm663
Copy link

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

@quantumalchemy
Copy link

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/mountable@0.39.0/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

@franciscobmacedo
Copy link
Author

No solution for this yet...

@jessemorros
Copy link

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/mountable@0.39.0/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/mountable@0.39.0/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

@maxibor
Copy link

maxibor commented Apr 10, 2024

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/mountable@0.52.1/build/static/js/8779.995e8fcf.chunk.js.

Using Firefox 124.0.1 on macOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants