mirror of https://github.com/bastienwirtz/homer
include credentials while making fetch calls
parent
35926e1e6e
commit
ecec695272
|
@ -64,7 +64,9 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
fetchStatus: async function () {
|
fetchStatus: async function () {
|
||||||
const url = `${this.item.url}/api.php`;
|
const url = `${this.item.url}/api.php`;
|
||||||
this.api = await fetch(url)
|
this.api = await fetch(url{
|
||||||
|
credentials: 'include'
|
||||||
|
})
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.catch((e) => console.log(e));
|
.catch((e) => console.log(e));
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue