From 82b739af8e3f3715d0368f47a6a6de96cfb40535 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Sat, 10 Dec 2022 21:55:34 -0800 Subject: [PATCH] set cookie domain --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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