sdelements/django-security

Support for nonce-<base64-value>

daniel5gh opened this issue · 1 comments

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!

9mido commented

@daniel5gh Yes it would be useful. Also see the django-csp library by mozilla for any more ideas you might want to implement.