diff --git a/src/components/services/AdGuardHome.vue b/src/components/services/AdGuardHome.vue index d4a2b89..9238060 100644 --- a/src/components/services/AdGuardHome.vue +++ b/src/components/services/AdGuardHome.vue @@ -51,7 +51,9 @@ export default { }, methods: { fetchStatus: async function () { - this.status = await fetch(`${this.item.url}/control/status`).then( + this.status = await fetch(`${this.item.url}/control/status`, { + credentials: "include", + }).then( (response) => response.json() ); }, diff --git a/src/components/services/PaperlessNG.vue b/src/components/services/PaperlessNG.vue index 4fb31f8..af13317 100644 --- a/src/components/services/PaperlessNG.vue +++ b/src/components/services/PaperlessNG.vue @@ -59,6 +59,7 @@ export default { } const url = `${this.item.url}/api/documents/`; this.api = await fetch(url, { + credentials: "include", headers: { Authorization: "Token " + this.item.apikey, }, 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)); }, diff --git a/src/components/services/Ping.vue b/src/components/services/Ping.vue index 8a9b7a4..e693af4 100644 --- a/src/components/services/Ping.vue +++ b/src/components/services/Ping.vue @@ -50,7 +50,11 @@ export default { methods: { fetchStatus: async function () { const url = `${this.item.url}`; - fetch(url, { method: "HEAD", cache: "no-cache" }) + fetch(url, { + method: "HEAD", + cache: "no-cache", + credentials: "include", + }) .then((response) => { if (!response.ok) { throw Error(response.statusText);