aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/services/PiHole.vue
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2021-09-13 12:55:14 -0700
committerGitHub <noreply@github.com>2021-09-13 12:55:14 -0700
commitafe6d34ced84cb22868e26466f5e6928c5cd0d06 (patch)
treecfcfe23f270b2c1b332d2aab2d1eebf9950e4236 /src/components/services/PiHole.vue
parent1ed0a2f387ebe3f0d0aef590087e351b9534efc0 (diff)
parentbbe7149d5814efc1d97613af107b12ba8f8a1c22 (diff)
downloadhomer-afe6d34ced84cb22868e26466f5e6928c5cd0d06.tar.gz
homer-afe6d34ced84cb22868e26466f5e6928c5cd0d06.tar.zst
homer-afe6d34ced84cb22868e26466f5e6928c5cd0d06.zip
Merge pull request #258 from mcclurec/sso-compliant-fetch-calls
SSO Compliant 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..87f7090 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 },