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') }}" />


Package Name

To install this plugin, search for its package name on the Plugin Store and click “Install”.


  • Version 1.3.1
  • Last Update 1/19/2021
  • Active Installs 203
  • Compatibility Craft 3
  • License MIT
  • Categories Security

Report an issue