stlite-image-processing-app
stlite-image-processing-app copied to clipboard
App not starting in Firefox - security error in console
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.
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)