The hosts
Host | Used for | CSP directive |
|---|---|---|
| The tracking script |
|
| Page views, clicks and your own events. |
|
| Your website's settings, campaigns, widgets, popups, notification bars, quizzes, redirect-test rules and session recordings. Also |
|
| Images you upload to widgets, popups and quizzes. |
|
| The fonts your widgets and quizzes use. |
|
Ready-to-paste policy
Merge these into your existing policy — keep your own sources and add the CROforce ones to each directive:
Content-Security-Policy:
script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.entail-insights.com https://widgets.entail.ai;
connect-src 'self' https://t.entail-insights.com https://widgets.entail.ai;
img-src 'self' data: https://entail-assets.com;
style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;
font-src 'self' https://fonts.gstatic.com;As a single header line:
Content-Security-Policy: script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.entail-insights.com https://widgets.entail.ai; connect-src 'self' https://t.entail-insights.com https://widgets.entail.ai; img-src 'self' data: https://entail-assets.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.comWhy the keywords
Keyword | Needed for | Without it |
|---|---|---|
| The install snippet, which is an inline <script>, and the hide snippet . | Use a nonce or hash for those scripts instead. If neither is allowed, CROforce doesn't load at all. |
| Tests with custom JavaScript, and custom JavaScript triggers for tests and quizzes. | That custom code doesn't run. Everything else works. |
| Styles that widgets, popups, tests and the hide snippet add to the page. | Widgets and popups show unstyled, and test style changes don't apply. |
Using a nonce for the snippet
If your policy uses nonces, give the snippet's <script> tag your page's nonce:
<script nonce="YOUR_PAGE_NONCE">
!function(t,e){ /* …your snippet… */ }(document,window.entailInsights||[]);
entailInsights.init('YOUR_SITE_TOKEN', { disable_decide: false });
</script>The snippet adds entail.js itself, so cdn.entail-insights.com must still be in script-src unless your policy uses 'strict-dynamic'.
If your widgets use other tools
A widget that includes one of these also loads from its provider. Allow the provider's hosts as their documentation lists them:
- HubSpot form element — loads HubSpot's form script from
js.hsforms.net. - YouTube or other video in a media carousel — loads from the video host.
- Custom code elements — whatever your code loads.
Firewalls, proxies and ad blockers
- A corporate firewall or proxy needs the same hosts allowed over HTTPS (port 443).
- Some visitors' ad blockers block analytics scripts. Their visits aren't counted, and they don't see your tests or widgets. You can't change that from your site.
- Troubleshooting: Script not detected, events missing, popup not showing.
- How the snippet works: What each line of the snippet does.
- Check your installation: Verify the script is running.
Frequently asked questions
How do I know if my Content Security Policy is blocking CROforce?
Open DevTools › Console on your site. Blocked requests show as errors that mention Content Security Policy and name the blocked host.
Why does CROforce need 'unsafe-inline'?
The install snippet is an inline script, and widgets, popups and the redirect-test hide snippet add inline styles. If your policy uses nonces or hashes, add one for the snippet instead of allowing all inline scripts.
Why does CROforce need 'unsafe-eval'?
Only for A/B tests that run your own custom JavaScript, and for custom JavaScript test or quiz triggers. Without it everything else works, but that code doesn't run.
