remove unecessary cookie header

This commit is contained in:
Arthur Lu 2022-12-19 15:22:20 -08:00
parent ca05ecc72f
commit 818748ef2b

View File

@ -56,9 +56,6 @@ export async function request (path, method, body = null, auth = true) {
content.body = prms.toString(); content.body = prms.toString();
content.headers.CSRFPreventionToken = getCookie("CSRFPreventionToken"); 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) let response = await fetch(`https://pve.tronnet.net/api2/json${path}`, content)
.then((response) => { .then((response) => {