Javascript resources are being blocked by Content Security Policy (Cloudflare Rocket loader)

After installing Discourse using Bitnami docker image, some javascript resources are being blocked by Content Security Policy

https://mysite/cdn-cgi/apps/head/Ec_4R3r_qp6Wu8DwcCflp-OGvgg.js
https://mysite/cdn-cgi/scripts/7d0fa10a/cloudflare-static/rocket-loader.min.js

These two JS resources are being blocked due to Content Security Policy mismatch. Anything I can do to work around it?

I’m running the docker containers behind Nginx

1 Like

Please see Troubleshooting Bitnami Installations.

But disabling rocket loader might help. It breaks things. I would recommend setting cloudflare to dns only to debug.

4 Likes

Thanks ! It was indeed being caused by Cloudflare.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.