You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
394 B
13 lines
394 B
<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>
|
|
|