token: use an http header for the token
This commit is contained in:
1 parent
4986f525f6
commit
1c5758c466
5 files changed
+33
-5
No files matched your search
+1
-4
@@ -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");
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user