summaryrefslogtreecommitdiff
path: root/srv/src/http/tpl/load-csrf.html
diff options
context:
space:
mode:
Diffstat (limited to 'srv/src/http/tpl/load-csrf.html')
-rw-r--r--srv/src/http/tpl/load-csrf.html13
1 files changed, 0 insertions, 13 deletions
diff --git a/srv/src/http/tpl/load-csrf.html b/srv/src/http/tpl/load-csrf.html
deleted file mode 100644
index b0757f9..0000000
--- a/srv/src/http/tpl/load-csrf.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<script async type="module" src="{{ StaticURL "api.js" }}"></script>
-
-<script type="text/javascript">
- (async () => {
- const api = await import("{{ StaticURL "api.js" }}");
- const res = await api.call("/api/csrf");
-
- const els = document.getElementsByClassName("csrfHiddenInput");
- for (let i = 0; i < els.length; i++) {
- els[i].value = res.CSRFToken;
- }
- })();
-</script>