Fix APIClient
This commit is contained in:
@ -38,13 +38,13 @@ export class APIClient {
|
||||
}
|
||||
|
||||
_callAPI(path, body, method='GET') {
|
||||
return fetch(baseURL + path, {
|
||||
return fetch(this.baseURL + path, {
|
||||
method,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
mode: 'cors',
|
||||
credentials: true,
|
||||
credentials: 'include',
|
||||
body: JSON.stringify(body),
|
||||
})
|
||||
.then(res => res.json())
|
||||
|
Reference in New Issue
Block a user