forked from GithubBackups/healthchecks
Simplify inline scripts for easier CSP
This commit is contained in:
parent
472c6424e9
commit
8ad3b0d537
@ -8,10 +8,8 @@
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<form id="form-auto" method="post">{% csrf_token %}</form>
|
||||
<script>
|
||||
document.getElementById("form-auto").submit();
|
||||
</script>
|
||||
<form id="form" method="post">{% csrf_token %}</form>
|
||||
<script>document.getElementById("form").submit();</script>
|
||||
|
||||
<style>
|
||||
body {
|
||||
@ -45,7 +43,7 @@
|
||||
<p>You are about to log into {% site_name %}.</p>
|
||||
<p>Please press the button below to continue:</p>
|
||||
<br />
|
||||
<form id="form" method="post">
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
<input
|
||||
id="submit-btn"
|
||||
|
@ -14,7 +14,5 @@
|
||||
value="Unsubscribe">
|
||||
</form>
|
||||
|
||||
<script>
|
||||
document.getElementById("form").submit();
|
||||
</script>
|
||||
<script>document.getElementById("form").submit();</script>
|
||||
{% endblock %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user