SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 86ea4b99 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Add nonce explicitly to registration recaptcha

parent 3b3bba3a
No related branches found
No related tags found
No related merge requests found
<script src="https://www.recaptcha.net/recaptcha/api.js{% if lang %}?hl={{ lang }}{% endif %}"></script> <script src="https://www.recaptcha.net/recaptcha/api.js{% if lang %}?hl={{ lang }}{% endif %}" nonce="{{ request.csp_nonce }}"></script>
<div class="g-recaptcha" data-sitekey="{{ public_key }}" {% for option,value in widget.attrs.items %}data-{{ option }}="{{ value }}" {% endfor %}></div> <div class="g-recaptcha" data-sitekey="{{ public_key }}" {% for option,value in widget.attrs.items %}data-{{ option }}="{{ value }}" {% endfor %}></div>
<noscript> <noscript>
<div style="width: 302px; height: 352px;"> <div style="width: 302px; height: 352px;">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment