From ecec695272f3e41d66401affea7f6fe5a93d3c28 Mon Sep 17 00:00:00 2001
From: Colin <mcclurec@gmail.com>
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/services/PiHole.vue')

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


From 0dc3cea15ed9d24d35e6383c89036e8a5e2eb83a Mon Sep 17 00:00:00 2001
From: Colin <mcclurec@gmail.com>
Date: Wed, 11 Aug 2021 15:40:22 -0700
Subject: Update PiHole.vue

---
 src/components/services/PiHole.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/components/services/PiHole.vue')

diff --git a/src/components/services/PiHole.vue b/src/components/services/PiHole.vue
index ce0b689..ca87f9d 100644
--- a/src/components/services/PiHole.vue
+++ b/src/components/services/PiHole.vue
@@ -65,7 +65,7 @@ export default {
     fetchStatus: async function () {
       const url = `${this.item.url}/api.php`;
       this.api = await fetch(url{
-        credentials: 'include'
+        credentials: "include",
       })
         .then((response) => response.json())
         .catch((e) => console.log(e));
-- 
cgit v1.2.3


From bbe7149d5814efc1d97613af107b12ba8f8a1c22 Mon Sep 17 00:00:00 2001
From: Colin <mcclurec@gmail.com>
Date: Mon, 16 Aug 2021 14:17:15 -0700
Subject: Update PiHole.vue

---
 src/components/services/PiHole.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/components/services/PiHole.vue')

diff --git a/src/components/services/PiHole.vue b/src/components/services/PiHole.vue
index ca87f9d..87f7090 100644
--- a/src/components/services/PiHole.vue
+++ b/src/components/services/PiHole.vue
@@ -64,7 +64,7 @@ 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())
-- 
cgit v1.2.3

