diff --git a/index.js b/index.js index 2a5fc86..d2527b7 100644 --- a/index.js +++ b/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`; } \ No newline at end of file