some more js api client fix
This commit is contained in:
parent
78ee84842e
commit
8c9b9618ca
1 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,7 @@
|
|||
|
||||
get(path) {
|
||||
return fetch(this.make_url(path), {
|
||||
credentials: 'omit',
|
||||
credentials: 'same-origin',
|
||||
method: 'GET',
|
||||
headers: {
|
||||
'X-API-Key': this.key,
|
||||
|
@ -45,10 +45,10 @@
|
|||
|
||||
async post(path, data) {
|
||||
return fetch(this.make_url(path), {
|
||||
credentials: 'omit',
|
||||
credentials: 'same-origin',
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Authorization': `Bearer ${this.key}`,
|
||||
'X-API-Key': this.key,
|
||||
'Accept': 'application/json',
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue