From ecec695272f3e41d66401affea7f6fe5a93d3c28 Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 11 Aug 2021 15:25:51 -0700 Subject: include credentials while making fetch calls --- src/components/services/PiHole.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/components') 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)); }, -- cgit v1.2.3