set cookie domain

This commit is contained in:
Arthur Lu 2022-12-10 21:55:34 -08:00
parent 029f626913
commit 8f48dc61ac

View File

@ -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`;
}