Closed FahrJo closed 6 months ago
Yeah this got broken with 28 :/ cc @nickvergessen @susnux
You need to add the nonce to you scripts if they import other scripts.
So in your entry point (I guess main.js
):
import { getRequestToken } from '@nextcloud/auth'
// eslint-disable-next-line camelcase
__webpack_nonce__ = btoa(getRequestToken())
I get those two errors in my browser log when I select an app in the left menu and the main view stays empty:
I don't have that issue with any other app.
Content-Security-Policy:
Can this be a bug from the app, or do I have to overwrite my CSP settings?
Server Nextcloud: 28.0.0 OCS API Viewer: 1.0.4 OS: Ubuntu 18.04.6 LTS Web server: Apache 2.4 Database: Mariadb PHP: 8.2
Client Browser: Safari 17.2 and Firefox 120.0.1 OS: MacOs