Univention Bugzilla – Bug 48607
UMC / Portal not working on due to Content Security Policy
Last modified: 2021-05-14 16:33:54 CEST
It seems dojo makes a request to 'https://dojotoolkit.org/' during startup. This request is blocked by our Content-Security-Policy. Refused to connect to 'https://dojotoolkit.org/' because it violates the following Content Security Policy directive: "connect-src 'self' https://ucs-sso.demo.univention.de/ http://ucs-sso.demo.univention.de/". dojo.js:20 Uncaught DOMException: Failed to execute 'open' on 'XMLHttpRequest': Refused to connect to 'https://dojotoolkit.org/' because it violates the document's Content Security Policy. at Object.native-xhr2-blob (https://demo.univention.de/univention/js/dojo/dojo.js:502:185) at l.has (https://demo.univention.de/univention/js/dojo/dojo.js:3:211) at https://demo.univention.de/univention/js/dojo/dojo.js:502:312 at ia (https://demo.univention.de/univention/js/dojo/dojo.js:20:170) at ia (https://demo.univention.de/univention/js/dojo/dojo.js:19:416) at ia (https://demo.univention.de/univention/js/dojo/dojo.js:19:416) at https://demo.univention.de/univention/js/dojo/dojo.js:20:425 at ja (https://demo.univention.de/univention/js/dojo/dojo.js:20:292) at ga (https://demo.univention.de/univention/js/dojo/dojo.js:20:367) at Pa (https://demo.univention.de/univention/js/dojo/dojo.js:12:308)
Created attachment 9825 [details] Screenshot I found https://bugs.dojotoolkit.org/ticket/18850 and http://dojo-toolkit.33424.n3.nabble.com/Loading-dojo-with-content-security-policy-CSP-without-unsafe-eval-td4006869.html which might help to fix it.
Happens also with Google Chrome 72.0.3626.81.
Could be the problem why your selenium tests don't work?!
Created attachment 9862 [details] Screenshot Firefox
Firefox 65 is affected as well.
This issue has been filed against UCS 4.3. UCS 4.3 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.