Skip to content

Commit

Permalink
add check for nonce
Browse files Browse the repository at this point in the history
  • Loading branch information
prauscher committed Apr 30, 2024
1 parent 58f8b61 commit ff9ded1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions djangosaml2/templates/djangosaml2/post_binding_form.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script type="text/javascript" nonce="{{ request.csp_nonce }}">
<script type="text/javascript"{% if request.csp_nonce %} nonce="{{ request.csp_nonce }}"{% endif %}>
window.onload = function() {
document.SSO_Login.submit();
};
Expand All @@ -12,4 +12,4 @@
<input type="hidden" name="{{ key }}" value="{{ value }}" />
{% endfor %}
<input type="submit" value="Log in" />
</form>
</form>

0 comments on commit ff9ded1

Please sign in to comment.