X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2Fcomponents%2Fservices%2FSonarr.vue;h=0270255995bfe9e35625d95c0aef81daf39c4053;hb=8d9cfa98bdeb88445f2f33d630998ac9b1f0dcd7;hp=7851b6b6b1dbc484e2da5218a2fa7926c239f746;hpb=afe6d34ced84cb22868e26466f5e6928c5cd0d06;p=github%2Fbastienwirtz%2Fhomer.git diff --git a/src/components/services/Sonarr.vue b/src/components/services/Sonarr.vue index 7851b6b..0270255 100644 --- a/src/components/services/Sonarr.vue +++ b/src/components/services/Sonarr.vue @@ -70,7 +70,9 @@ export default { }, methods: { fetchConfig: function () { - fetch(`${this.item.url}/api/health?apikey=${this.item.apikey}`) + fetch(`${this.item.url}/api/health?apikey=${this.item.apikey}`, { + credentials: "include", + }) .then((response) => { if (response.status != 200) { throw new Error(response.statusText); @@ -92,7 +94,9 @@ export default { console.error(e); this.serverError = true; }); - fetch(`${this.item.url}/api/queue?apikey=${this.item.apikey}`) + fetch(`${this.item.url}/api/queue?apikey=${this.item.apikey}`, { + credentials: "include", + }) .then((response) => { if (response.status != 200) { throw new Error(response.statusText);