remove unecessary cookie header
This commit is contained in:
parent
ca05ecc72f
commit
818748ef2b
@ -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) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user