diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2021-09-13 12:55:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-13 12:55:14 -0700 |
commit | afe6d34ced84cb22868e26466f5e6928c5cd0d06 (patch) | |
tree | cfcfe23f270b2c1b332d2aab2d1eebf9950e4236 /src/components/services/PiHole.vue | |
parent | 1ed0a2f387ebe3f0d0aef590087e351b9534efc0 (diff) | |
parent | bbe7149d5814efc1d97613af107b12ba8f8a1c22 (diff) | |
download | homer-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.vue | 4 |
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 | }, |