forked from extern/homer
include credentials while making fetch calls
This commit is contained in:
parent
35926e1e6e
commit
ecec695272
@ -64,7 +64,9 @@ export default {
|
||||
methods: {
|
||||
fetchStatus: async function () {
|
||||
const url = `${this.item.url}/api.php`;
|
||||
this.api = await fetch(url)
|
||||
this.api = await fetch(url{
|
||||
credentials: 'include'
|
||||
})
|
||||
.then((response) => response.json())
|
||||
.catch((e) => console.log(e));
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user