fix: rm credentials from CORS report
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
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:
parent
914302e208
commit
47399c163e
1 changed files with 0 additions and 6 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue