diff options
author | Colin <mcclurec@gmail.com> | 2021-08-11 15:25:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-11 15:25:51 -0700 |
commit | ecec695272f3e41d66401affea7f6fe5a93d3c28 (patch) | |
tree | 427f50973df2b378cb88560b6b0ea6a7c2e1b384 /src/components/services | |
parent | 35926e1e6e4669e881b8f69003f97752172eb922 (diff) | |
download | homer-ecec695272f3e41d66401affea7f6fe5a93d3c28.tar.gz homer-ecec695272f3e41d66401affea7f6fe5a93d3c28.tar.zst homer-ecec695272f3e41d66401affea7f6fe5a93d3c28.zip |
include credentials while making fetch calls
Diffstat (limited to 'src/components/services')
-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..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 | }, |