CSP Friendly Security
CSP Friendly Security
Description
Adds a CSP header compatible with most WP plugins without breaking styles.
Installation
- Extract the zip file and drop the contents in wp-content/plugins/ or install via dashboard.
- Activate the plugin. No settings required.
Faq
Just activate it!
Reviews
Great plugin
By amanandhishoe on July 24, 2023
I downloaded this plugin and modified it for my site. I would recommend doing that. The plugin hooks into the 'template_redirect' hook. At that point the source for the page has been generated by themes and plugins and is ready to be sent. The plugin looks through the generated source and makes nonces for all inline scripts and styles. It modifies the source so the inline scripts and styles have a nonce='some-nonce' statement in them. It creates a Content-Security-Policy which includes those nonces.
However, each site has its own CSP needs, and so modifying the plugin to tailor the CSP to your site is not that difficult to do. That is what I have done.
total cache compatibility issues
By hayobethlehem on September 15, 2022
Could be better
By esadc on September 8, 2022
Satisfied!
By OkorieWare (okorieware) on July 14, 2022
Changelog
1.5.1
- Fixed plugin header for WP validation
- Added short description