django-security
django-security copied to clipboard
Support for nonce-<base64-value>
Hi, I've created a subclass of ContentSecurityPolicyMiddleware
and an accompanying template context processor so I can do:
<script type="text/javascript" nonce="{{ csp_nonce }}">
</script>
Is there any interest in this? If so I can make a PR.
Thanks!
@daniel5gh Yes it would be useful. Also see the django-csp library by mozilla for any more ideas you might want to implement.