Issue: “Refused to load the script”

A/B testing Advanced Personalization Technical Troubleshooting

You may encounter this issue: “Refused to load the script ‘https://xxxxxx.kameleoon.eu/kameleoon.js’ because it violates the following Content Security Policy directive”.

This may be due to the Content Security Policy (https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) defined for your website.

Fixing this issue

If your website restricts the loading of resources (scripts, images, media, CSS) via the standard Content-Security-Policy (CSP) HTTP header, you must update your site’s CSP to allow Kameleoon resources to load. You can find the full list in our developer documentation.