Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/headwalluk/easy-csp-headers/releases/download/v1.1.0/easy-csp-headers.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
A WordPress plugin that automatically generates and injects Content Security Policy (CSP) headers with nonces for enhanced security.
Features
- ✅ Automatic Nonce Generation - Unique nonce for every page load
- ✅ HTML Processing - Uses WordPress
WP_HTML_Tag_Processorfor safe, fast HTML manipulation - ✅ Strict-Dynamic Support - Modern CSP with automatic script trust propagation
- ✅ Report-Only Mode - Test CSP without breaking your site
- ✅ Flexible Configuration - Granular control via settings page
- ✅ Cache-Friendly - Works seamlessly with page caching plugins
- ✅ WordPress Standards - Follows WordPress Coding Standards
How It Works
- Captures Output - Hooks into
template_redirectand starts output buffering - Generates Nonce - Creates a cryptographically secure nonce
- Processes HTML - Adds nonce attributes to `
Releases
1 release. Each count is every asset in that release; expand a row for the breakdown.
Tag
Published
Assets
Downloads
v1.1.0
latest
Jan 29, 2026 9mo ago
easy-csp-headers.zip
+1 asset
25
easy-csp-headers.zip24
easy-csp-headers-1.1.0.zip1