Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for nonce-<base64-value> #84

Open
daniel5gh opened this issue May 19, 2020 · 1 comment
Open

Support for nonce-<base64-value> #84

daniel5gh opened this issue May 19, 2020 · 1 comment

Comments

@daniel5gh
Copy link

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
Copy link

9mido commented Nov 6, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants