-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Content-Security-Policy if hash is included in script-src (#404)
* replace unsafe-inline with nonce for autosubmit * add note to docs about nonce * bump version * add check for nonce
- Loading branch information
Showing
4 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<script type="text/javascript"{% if request.csp_nonce %} nonce="{{ request.csp_nonce }}"{% endif %}> | ||
window.onload = function() { | ||
document.SSO_Login.submit(); | ||
}; | ||
</script> | ||
<p> | ||
You're being redirected to a SSO login page. | ||
Please click the button below if you're not redirected automatically within a few seconds. | ||
</p> | ||
<form method="post" action="{{ target_url }}" name="SSO_Login"> | ||
{% for key, value in params.items %} | ||
<input type="hidden" name="{{ key }}" value="{{ value }}" /> | ||
{% endfor %} | ||
<input type="submit" value="Log in" /> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters