remove csrf token from cookie
This commit is contained in:
parent
c83c706a32
commit
fcb28f0a9d
@ -57,7 +57,7 @@ export async function request (path, method, body = null, auth = true) {
|
|||||||
content.headers.CSRFPreventionToken = getCookie("CSRFPreventionToken");
|
content.headers.CSRFPreventionToken = getCookie("CSRFPreventionToken");
|
||||||
}
|
}
|
||||||
if(auth) {
|
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)
|
let response = await fetch(`https://pve.tronnet.net/api2/json${path}`, content)
|
||||||
|
Loading…
Reference in New Issue
Block a user