From 454e45d746ec5fe6542092d2dfcf4f14c501d615 Mon Sep 17 00:00:00 2001 From: ChrisPhillips-cminion Date: Sun, 5 Nov 2023 22:41:43 +0000 Subject: [PATCH] Update parentClient.ts Removed headers --- src/core/parentClient.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/parentClient.ts b/src/core/parentClient.ts index 5f1f0ea..5d95ec4 100644 --- a/src/core/parentClient.ts +++ b/src/core/parentClient.ts @@ -33,13 +33,10 @@ export class ParentClient extends BaseClient { formData.append("logintype", "existing"); formData.append("password", this.password); formData.append("recaptcha-token", "no-token-available"); - const headers = new Headers({ - "Content-Type": "application/x-www-form-urlencoded", - }); + const response = await fetch(BASE_URL + "/parent/login", { method: "POST", body: formData, - headers: headers, redirect: "manual", }); if (response.status != 302 || !response.headers.has("set-cookie")) {