diff --git a/src/index.ts b/src/index.ts index 457802a..c26c0b3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -57,7 +57,6 @@ class Forgejo { this.url.pathname = "/api/v1/user"; let res = await fetch(this.url, { method: "GET", - credentials: "include", headers: this.getTokenAuthHeader(), }); return await res.json(); @@ -70,7 +69,6 @@ class Forgejo { this.url.pathname = "/api/v1/notifications"; let res = await fetch(this.url, { method: "GET", - credentials: "include", headers: this.getTokenAuthHeader(), }); @@ -83,7 +81,6 @@ class Forgejo { this.url.pathname = "/api/v1/notifications/new"; let res = await fetch(this.url, { method: "GET", - credentials: "include", headers: this.getTokenAuthHeader(), }); @@ -99,7 +96,6 @@ class Forgejo { this.url.pathname = `/api/v1/notifications/threads/${id}`; let res = await fetch(this.url, { method: "GET", - credentials: "include", headers: this.getTokenAuthHeader(), }); return await res.json(); @@ -183,7 +179,6 @@ class Forgejo { this.url.pathname = `/api/v1/repos/${owner}/${repo}/issues/${id}`; let res = await fetch(this.url, { method: "GET", - credentials: "include", headers: this.getTokenAuthHeader(), }); let issue = await res.json(); @@ -216,7 +211,6 @@ class Forgejo { this.url.pathname = `/api/v1/repos/${issue.repository.owner}/${issue.repository.name}/issues/${issue.number}/comments`; let res = await fetch(this.url, { method: "GET", - credentials: "include", headers: this.getTokenAuthHeader(), }); let c: Array = await res.json();