stlite-image-processing-app icon indicating copy to clipboard operation
stlite-image-processing-app copied to clipboard

App not starting in Firefox - security error in console

Open AWolf81 opened this issue 2 years ago • 0 comments

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)

AWolf81 avatar Jul 23 '23 21:07 AWolf81