fix: rm credentials from CORS report
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSNotSupportingCredentials
This commit is contained in:
Aravinth Manivannan 2023-09-19 03:41:59 +05:30
parent 914302e208
commit 47399c163e
Signed by: realaravinth
GPG key ID: F8F50389936984FF

View file

@ -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<Comment> = await res.json();