aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/services
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2021-09-24 23:59:38 -0700
committerGitHub <noreply@github.com>2021-09-24 23:59:38 -0700
commitb2a31c0701e1938fae407cd3afc3e1b0dc46eaa9 (patch)
treeb97d426f5aa5d1dc6d81437a517b7bc27f2ac8da /src/components/services
parentd489f6ef87763099abdefd197f1d973a78f59883 (diff)
parentd6d078132b5ef5b2d7d1d62efc35343fc37e18f1 (diff)
downloadhomer-b2a31c0701e1938fae407cd3afc3e1b0dc46eaa9.tar.gz
homer-b2a31c0701e1938fae407cd3afc3e1b0dc46eaa9.tar.zst
homer-b2a31c0701e1938fae407cd3afc3e1b0dc46eaa9.zip
Merge pull request #291 from mcclurec/radarr-sonarr-sso-fix
Add credentials: "include" back to Radarr and Sonarr
Diffstat (limited to 'src/components/services')
-rw-r--r--src/components/services/Radarr.vue8
-rw-r--r--src/components/services/Sonarr.vue8
2 files changed, 12 insertions, 4 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 {
70 }, 70 },
71 methods: { 71 methods: {
72 fetchConfig: function () { 72 fetchConfig: function () {
73 fetch(`${this.item.url}/api/health?apikey=${this.item.apikey}`) 73 fetch(`${this.item.url}/api/health?apikey=${this.item.apikey}`, {
74 credentials: "include",
75 })
74 .then((response) => { 76 .then((response) => {
75 if (response.status != 200) { 77 if (response.status != 200) {
76 throw new Error(response.statusText); 78 throw new Error(response.statusText);
@@ -92,7 +94,9 @@ export default {
92 console.error(e); 94 console.error(e);
93 this.serverError = true; 95 this.serverError = true;
94 }); 96 });
95 fetch(`${this.item.url}/api/queue?apikey=${this.item.apikey}`) 97 fetch(`${this.item.url}/api/queue?apikey=${this.item.apikey}`, {
98 credentials: "include",
99 })
96 .then((response) => { 100 .then((response) => {
97 if (response.status != 200) { 101 if (response.status != 200) {
98 throw new Error(response.statusText); 102 throw new Error(response.statusText);
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 {
70 }, 70 },
71 methods: { 71 methods: {
72 fetchConfig: function () { 72 fetchConfig: function () {
73 fetch(`${this.item.url}/api/health?apikey=${this.item.apikey}`) 73 fetch(`${this.item.url}/api/health?apikey=${this.item.apikey}`, {
74 credentials: "include",
75 })
74 .then((response) => { 76 .then((response) => {
75 if (response.status != 200) { 77 if (response.status != 200) {
76 throw new Error(response.statusText); 78 throw new Error(response.statusText);
@@ -92,7 +94,9 @@ export default {
92 console.error(e); 94 console.error(e);
93 this.serverError = true; 95 this.serverError = true;
94 }); 96 });
95 fetch(`${this.item.url}/api/queue?apikey=${this.item.apikey}`) 97 fetch(`${this.item.url}/api/queue?apikey=${this.item.apikey}`, {
98 credentials: "include",
99 })
96 .then((response) => { 100 .then((response) => {
97 if (response.status != 200) { 101 if (response.status != 200) {
98 throw new Error(response.statusText); 102 throw new Error(response.statusText);