From eecd0db92e84eab5299441a9eb20f1e1d16691fb Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 22 Sep 2021 10:23:24 -0700 Subject: [PATCH 1/3] Add credentials: "include" back to Radarr` --- src/components/services/Radarr.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/services/Radarr.vue b/src/components/services/Radarr.vue index 9d38292..a9cdedf 100644 --- a/src/components/services/Radarr.vue +++ b/src/components/services/Radarr.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); From e32643056e89baebef82b72ba6e342653cec74f2 Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 22 Sep 2021 10:37:52 -0700 Subject: [PATCH 2/3] Add credentials: "include" back to Sonarr --- src/components/services/Sonarr.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/services/Sonarr.vue b/src/components/services/Sonarr.vue index 7851b6b..4d94c08 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); From d6d078132b5ef5b2d7d1d62efc35343fc37e18f1 Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 22 Sep 2021 10:47:10 -0700 Subject: [PATCH 3/3] Update Sonarr.vue --- src/components/services/Sonarr.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/services/Sonarr.vue b/src/components/services/Sonarr.vue index 4d94c08..0270255 100644 --- a/src/components/services/Sonarr.vue +++ b/src/components/services/Sonarr.vue @@ -94,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);