remove csrf token from cookie

This commit is contained in:
Arthur Lu 2022-12-15 23:51:51 -08:00
parent 9dc6b6d588
commit e66cf54a2e

View File

@ -57,7 +57,7 @@ export async function request (path, method, body = null, auth = true) {
content.headers.CSRFPreventionToken = getCookie("CSRFPreventionToken");
}
if(auth) {
content.headers.Cookie = document.cookie;
content.headers.Cookie = `PVEAuthCookie=${getCookie("PVEAuthCookie")}`;
}
let response = await fetch(`https://pve.tronnet.net/api2/json${path}`, content)