Documents / Sentinel Security / Troubleshooting

My site broke after configuring CSP

Q. My site stopped displaying correctly after I configured CSP (Content Security Policy)

A. Your CSP settings are too strict, causing legitimate scripts and stylesheets to be blocked.

Emergency Fix

First, restore your site's display.

  1. Go to SentinelSecuritySecurity Header Settings (the admin panel is not affected by CSP)
  2. Either disable CSP or switch to Report-Only (Learning) mode
  3. Click Save
  4. Verify that the site's front end is displaying correctly
If you cannot access the admin panel either, use FTP to rename the /wp-content/plugins/sentinel-security folder to disable the plugin.

Proper CSP Deployment Steps

It is critical to deploy CSP gradually.

Step 1: Smart Scan

Use the Smart Scan feature to automatically scan the origins of resources used on your site (scripts, stylesheets, images, fonts, etc.). This will generate a list of domains that need to be allowed.

Step 2: Learn with Report-Only Mode

Set the CSP mode to Report-Only (Learning) and run it for 1–2 weeks. In this mode, resources are not actually blocked — only policy violations are recorded as reports.

Step 3: Review Violation Logs

Check the CSP Violation Log and add legitimate resources (your own site's scripts, Google Analytics, CDN fonts, etc.) to the policy.

Step 4: Switch to Enforce Mode

Once violations have been sufficiently reduced, switch to Enforce mode.

Common Causes

Blocked ResourceFix
Google FontsAdd https://fonts.googleapis.com and https://fonts.gstatic.com to font-src
Google AnalyticsAdd https://www.googletagmanager.com to script-src and connect-src
Inline scriptsAdd 'unsafe-inline' to script-src (not recommended, but necessary in some cases)
CDN stylesheetsAdd the CDN domain to style-src
For detailed configuration instructions, see Security Header Settings.