token: use an http header for the token

This commit is contained in:
Vaxry
2025-04-13 17:58:27 +01:00
parent 4986f525f6
commit 1c5758c466
5 changed files with 33 additions and 5 deletions

View File

@@ -286,10 +286,7 @@
).then((res) => {
if (res.status == 200) {
console.log("Got token.");
const json = res.json().then((parsed) => {
document.cookie = "CheckpointToken=" + parsed.token + "; path=/";
window.location.reload();
});
window.location.reload();
} else
console.log("Server error");
});