remove csrf token from cookie

This commit is contained in:
Arthur Lu 2022-12-15 23:51:51 -08:00
parent c83c706a32
commit fcb28f0a9d

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)