default-src 'none';base-uri 'none';manifest-src 'self';script-src 'nonce-BLUBB';style-src 'self' 'unsafe-inline';img-src 'self' data: blob:;font-src 'self';connect-src 'self';media-src 'self';frame-src https://office.catchit.xyzContent Security Policy: The page’s settings blocked the loading of a resource at eval (“script-src”).No CSP issue
Without execution of loaded JS the "Start update" button does nothing.
Web server: Nginx
PHP version: 7.3
Nextcloud version: (see Nextcloud admin page) 15.0.0 beta 2
Edit: Maybe a duplicate of https://github.com/nextcloud/server/issues/12497 - searched for CSP and eval and found nothing.
Same here with Apache + PHP7.2.
@MichaIng yes after writing the issue the github search included a link to the issue (because your comment was related). I searched and also looked into milestone (is a blocker for me) and found nothing. The problem is no new page is loaded (Take a look at URL) = old URL and
Ai. Yes we might need to losen the CSP for the updater page
Update itself has no CSP. Because you stay on admin/overview the CSP of admin/overview breaks the updater. Maybe open a new tab or reopen the site should fix it and avoid the Vue router with old CSP.
I will look into this tomorrow. Thanks for the feedback. We totally missed this one.
This is due to an eval() in the updater notification app:
@rullzer @nickvergessen What to do here? Should we try to add the script elements inline via HTML tags? Or should we whitelist eval on the page once an update is detected?
Should we try to add the script elements inline via HTML tags?
I tested and it doesn't work. There is another creepy way: parse the <script> tags, send them to the server as "here serve this on the next request I will issue" and then insert a "
Most helpful comment
I will look into this tomorrow. Thanks for the feedback. We totally missed this one.