X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2Fcomponents%2Fservices%2FAdGuardHome.vue;h=bf5caa96072da7ae95eeb7bbcb1a7fc3fd7da221;hb=077be43473ebdb241c6a70e4d06795ca80a591fb;hp=3ce56dd662c23bdbbb54657c8ec6910647fdcb3a;hpb=2bd57d17fd5af26fd014b653ac97e58d2fc3c52b;p=github%2Fbastienwirtz%2Fhomer.git diff --git a/src/components/services/AdGuardHome.vue b/src/components/services/AdGuardHome.vue index 3ce56dd..bf5caa9 100644 --- a/src/components/services/AdGuardHome.vue +++ b/src/components/services/AdGuardHome.vue @@ -11,14 +11,18 @@
- +

{{ item.name }}

{{ item.subtitle }}

-
+
{{ status.protection_enabled }}
@@ -47,8 +51,10 @@ export default { }, methods: { fetchStatus: async function () { - this.status = await fetch(`${this.item.url}/control/status`).then((response) => - response.json() + this.status = await fetch(`${this.item.url}/control/status`{ + credentials: 'include', + }).then( + (response) => response.json() ); }, },