From 8f48dc61ac3fccf5d319bd9de0016b9f0c4a5094 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