CSP error: Refused to create a worker from

Hello, I’m getting this error in my browser console.

NC 27.0.1.
PHP 8.1
Mysql 8.0
Default Nginx config from Nextcloud.

ServiceWorker.js:31 Refused to create a worker from 'https://cloud.example.com/index.php/apps/files/preview-service-worker.js' because it violates the following Content Security Policy directive: "script-src 'nonce-Q2757lreGFvNk5lQksvQ3QwVnc37775JGRWd3QjljMlltSURNOVZoM75757G9kNlRRdHI4TXcySzhtM3dnd1kxQnkwenRjUHdHUkxReEVKYjJ0L1lIWT0='". Note that 'worker-src' was not explicitly set, so 'script-src' is used as a fallback.
(anonymous) @ ServiceWorker.js:31
load (async)
73413 @ ServiceWorker.js:28
o @ files-main.js?v=a0eb4e4e-156:2
(anonymous) @ files-main.js?v=a0eb4e4e-156:2
o.O @ chunk loaded:25
(anonymous) @ files-main.js?v=a0eb4e4e-156:2
(anonymous) @ files-main.js?v=a0eb4e4e-156:2
ConsoleLogger.js:59 [ERROR] files: SW registration failed:  {app: 'files', uid: 'username', level: 2, error: DOMException: Failed to register a ServiceWorker: The provided scriptURL ('https://cloud.example…}
1 Like

Same here. Did you resolve this issue? If yes, how?

Would also like to know, discovered this error today. I don’t know since when the error is displayed.

Same here !!
it seems that it is linked to some favicons display issues and slowdowns

In the console i get

Is there anybody to explain these errors ?

I am having the same problem, the weird thing is that is doesn’t happen on mobile or in mobile dev tools view on desktop.