X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2Fcomponents%2Fservices%2FPiHole.vue;h=87f7090d4ad8b16f47b5a2285db872f8102074ba;hb=33d60aa76a975f26733e45f7652a03088f32c812;hp=7042a7b2a5055662e7434bead008af4036a6e934;hpb=1ed0a2f387ebe3f0d0aef590087e351b9534efc0;p=github%2Fbastienwirtz%2Fhomer.git 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 { 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)); },