remove unecessary cookie header
This commit is contained in:
parent
474e5b2e09
commit
529959cba5
@ -56,9 +56,6 @@ export async function request (path, method, body = null, auth = true) {
|
||||
content.body = prms.toString();
|
||||
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)
|
||||
.then((response) => {
|
||||
|
Loading…
Reference in New Issue
Block a user