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…}
