Snippet
Add a CSP nonce to inline scripts
Generate a per-request nonce so you can drop 'unsafe-inline' from your Content-Security-Policy.
Ben Carter · 8d ago#security#csp#php
Government Drupal Developers Network · Community platform
Resource library
Guides, modules, patterns, tools, templates and snippets, shared and upvoted by people who use them in production.
Small bits of copy-paste code.
Generate a per-request nonce so you can drop 'unsafe-inline' from your Content-Security-Policy.
List enabled contrib modules with no config entities, as a starting point for clean-up.