set cookie domain
This commit is contained in:
parent
97f789853c
commit
82b739af8e
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