Js optimization / minimizing

Hi, I have a nextcloud instance running on my server and when i connect to it i get the following error
Refused to load the script 'https://nc.xxxxxxxxxxx.com/cdn-cgi/apps/head/0rCAkejHiHsiY11n5OajRZ2AK-0.js' because it violates the following Content Security Policy directive: "script-src 'nonce-TnhHT0wrbEEzNVJLVFJNeTRTUHdlUkJMR2xCVW91dmRHamJoMkgvalNUOD06QUZma2JMZ3Jpdk10QW1NQm9IcTJFaWNEYTJrZjg1S0hhZ2VqdEM2eEsxST0='". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
Refused to load the script 'https://nc.xxxxxxxxxxx.com/cdn-cgi/apps/head/0rCAkejHiHsiY11n5OajRZ2AK-0.js' because it violates the following Content Security Policy directive: "script-src 'nonce-TnhHT0wrbEEzNVJLVFJNeTRTUHdlUkJMR2xCVW91dmRHamJoMkgvalNUOD06QUZma2JMZ3Jpdk10QW1NQm9IcTJFaWNEYTJrZjg1S0hhZ2VqdEM2eEsxST0='". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
I already know that it is some setting with cloudflare but I cant seem to find it. Also Is there a way to apply them only to the subdomain. I tried disabling rocket and brotli already but i still get the error.
5 Replies
Chaika
Chaika14mo ago
That looks like a Cloudflare App, check under "Apps" -> "Installed Apps" under your website in the Cloudflare dashboard
Preston
PrestonOP14mo ago
theres portzilla i dont use it tho ill uninstall it and check tho
Chaika
Chaika14mo ago
Also Is there a way to apply them only to the subdomain. I tried disabling rocket and brotli already but i still get the error.
Apps? I think in theory the app maker could offer that, but apps are a sort of dead platform atm sadly For more generic settings, you can use some of the new rule types like Configuration Rules, Cache Rules to control a lot of those settings on a subdomain basis, by using the Hostname field, ex
No description
Chaika
Chaika14mo ago
Actually Configuration Rules can turn on/off apps on subdomains, but only all or none, forgot about that
Preston
PrestonOP14mo ago
alright Ill look into the config rules and getting rid of portzilla seems to have fixed the issue
Want results from more Discord servers?
Add your server