set cookie domain
This commit is contained in:
parent
029f626913
commit
8f48dc61ac
2
index.js
2
index.js
@ -49,5 +49,5 @@ async function request (path, method, body) {
|
||||
function setTicket (ticket) {
|
||||
let d = new Date();
|
||||
d.setTime(d.getTime() + (2*60*60*1000));
|
||||
document.cookie = `PVEAuthCookie=${ticket}; path=/; expires=${d.toUTCString()};`;
|
||||
document.cookie = `PVEAuthCookie=${ticket}; path=/; expires=${d.toUTCString()}; domain=.tronnet.net`;
|
||||
}
|
Loading…
Reference in New Issue
Block a user