From: Colin Date: Wed, 11 Aug 2021 22:25:51 +0000 (-0700) Subject: include credentials while making fetch calls X-Git-Tag: v21.09.1~4^2~8 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=ecec695272f3e41d66401affea7f6fe5a93d3c28;p=github%2Fbastienwirtz%2Fhomer.git include credentials while making fetch calls --- diff --git a/src/components/services/PiHole.vue b/src/components/services/PiHole.vue index 7042a7b..ce0b689 100644 --- a/src/components/services/PiHole.vue +++ b/src/components/services/PiHole.vue @@ -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)); },