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