From 818748ef2b79702474a4170dbfcdd99d4498044a Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 19 Dec 2022 15:22:20 -0800 Subject: [PATCH] remove unecessary cookie header --- scripts/utils.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/utils.js b/scripts/utils.js index f3c0728..645dc78 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -56,9 +56,6 @@ export async function request (path, method, body = null, auth = true) { content.body = prms.toString(); content.headers.CSRFPreventionToken = getCookie("CSRFPreventionToken"); } - if(auth) { - content.headers.Cookie = `PVEAuthCookie=${getCookie("PVEAuthCookie")}`; - } let response = await fetch(`https://pve.tronnet.net/api2/json${path}`, content) .then((response) => {