aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/services/PiHole.vue
diff options
context:
space:
mode:
authorColin <mcclurec@gmail.com>2021-08-11 15:25:51 -0700
committerGitHub <noreply@github.com>2021-08-11 15:25:51 -0700
commitecec695272f3e41d66401affea7f6fe5a93d3c28 (patch)
tree427f50973df2b378cb88560b6b0ea6a7c2e1b384 /src/components/services/PiHole.vue
parent35926e1e6e4669e881b8f69003f97752172eb922 (diff)
downloadhomer-ecec695272f3e41d66401affea7f6fe5a93d3c28.tar.gz
homer-ecec695272f3e41d66401affea7f6fe5a93d3c28.tar.zst
homer-ecec695272f3e41d66401affea7f6fe5a93d3c28.zip
include credentials while making fetch calls
Diffstat (limited to 'src/components/services/PiHole.vue')
-rw-r--r--src/components/services/PiHole.vue4
1 files changed, 3 insertions, 1 deletions
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 {
64 methods: { 64 methods: {
65 fetchStatus: async function () { 65 fetchStatus: async function () {
66 const url = `${this.item.url}/api.php`; 66 const url = `${this.item.url}/api.php`;
67 this.api = await fetch(url) 67 this.api = await fetch(url{
68 credentials: 'include'
69 })
68 .then((response) => response.json()) 70 .then((response) => response.json())
69 .catch((e) => console.log(e)); 71 .catch((e) => console.log(e));
70 }, 72 },