token: use an http header for the token

This commit is contained in:
Vaxry committed 2025-04-13 17:58:38 +01:00
1 parent 4986f525f6
commit 1c5758c466
5 files changed
+33 -5

No files matched your search

+1 -4
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");
});