Content Security Policy icon

Content Security Policy

Content Security Policy (or CSP) generator using nonces. Either config using config/content-security-policy.php or use nonces:

<script src="url/of/script.js" nonce="{{ cspNonce('script-src') }}"></script>
<link href="url/of/style.css" rel="stylesheet" nonce="{{ cspNonce('style-src') }}" />
Installation Instructions

To install this plugin, copy the command above to your terminal.

Active Installs
565
Version
2.0.0-beta.1
License
MIT
Compatibility
Craft 3, Craft 4
Last release
March 8, 2022
Categories
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs