Skip to content

CSP and script blocking

Diagnose CSP headers and browser blockers that stop the widget from loading.

Two different blockers look alike: server CSP headers and browser extensions. Split them — test once with extensions off and once with headers relaxed in staging.

Server CSP

  1. Open DevTools Console on the live page with the widget missing
  2. Look for Content-Security-Policy violations naming getamevia.com
  3. Add the script host from Installation to script-src
  4. Add connect-src entries if network calls to Amevia fail CSP
  5. Deploy header changes and hard-refresh

Browser blockers

  1. Retry in a private window with extensions disabled
  2. If the widget appears, educate testers or document allowed domains for corporate browsers
  3. Do not treat ad-block-only success as production-ready for all visitors

Debugging order

  • Confirm the script exists in View Source before chasing CSP
  • Report-only CSP modes log but do not block — read reports then enforce carefully
  • See Content Security Policy blocking the widget for widget-specific allowlists
CSP and script blocking — Amevia Help