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

App not starting in Firefox - security error in console #2

Open
AWolf81 opened this issue Jul 23, 2023 · 0 comments
Open

App not starting in Firefox - security error in console #2

AWolf81 opened this issue Jul 23, 2023 · 0 comments

Comments

@AWolf81
Copy link

AWolf81 commented Jul 23, 2023

The app is loading with an error in Firefox (see screenshot below). Loading in Chrome works.

It could be a CORS or a CSP issue. But I couldn't find anything related to the error online.

grafik

I tried to add a content security policy (but still has the same message in Firefox). The following experimental CSP is working in Chrome:

<meta
  http-equiv="Content-Security-Policy"
  content="default-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.jsdelivr.net/ https://pypi.org/pypi/ https://files.pythonhosted.org/packages/; worker-src 'self' blob:; img-src 'self' 'unsafe-inline' blob: data:; connect-src https://cdn.jsdelivr.net/pyodide/ https://cdn.jsdelivr.net/npm/ https://pypi.org/pypi/ https://files.pythonhosted.org/packages/ ws://127.0.0.1:5500/ data:;"/>

Translated error message:
Security error: Content on https://.. not allowed to load any data from https://cdn.jsdelivr.net/...

Firefox version & OS:
Window 10 (64-bit)
FF 115.0.2 (64-Bit)

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

1 participant