diff options
author | rvk <329491+rvankraaij@users.noreply.github.com> | 2021-08-04 21:26:15 +0200 |
---|---|---|
committer | rvk <329491+rvankraaij@users.noreply.github.com> | 2021-08-04 21:26:15 +0200 |
commit | 304362adfd5fe06d7b55fe99087543e09f1ef3d8 (patch) | |
tree | 5f876f4999c48b19d635f16a9602854419cf84fa /src/components | |
parent | 25f99adc6c854f27dc1df4a88bf8da5b01812f46 (diff) | |
download | homer-304362adfd5fe06d7b55fe99087543e09f1ef3d8.tar.gz homer-304362adfd5fe06d7b55fe99087543e09f1ef3d8.tar.zst homer-304362adfd5fe06d7b55fe99087543e09f1ef3d8.zip |
Fix CORS issue for Radarr and Sonarr services
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/services/Radarr.vue | 4 | ||||
-rw-r--r-- | src/components/services/Sonarr.vue | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/components/services/Radarr.vue b/src/components/services/Radarr.vue index 3b88083..9d38292 100644 --- a/src/components/services/Radarr.vue +++ b/src/components/services/Radarr.vue | |||
@@ -70,7 +70,7 @@ 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 | .then((response) => { | 74 | .then((response) => { |
75 | if (response.status != 200) { | 75 | if (response.status != 200) { |
76 | throw new Error(response.statusText); | 76 | throw new Error(response.statusText); |
@@ -92,7 +92,7 @@ export default { | |||
92 | console.error(e); | 92 | console.error(e); |
93 | this.serverError = true; | 93 | this.serverError = true; |
94 | }); | 94 | }); |
95 | fetch(`${this.item.url}/api/queue?apiKey=${this.item.apikey}`) | 95 | fetch(`${this.item.url}/api/queue?apikey=${this.item.apikey}`) |
96 | .then((response) => { | 96 | .then((response) => { |
97 | if (response.status != 200) { | 97 | if (response.status != 200) { |
98 | throw new Error(response.statusText); | 98 | throw new Error(response.statusText); |
diff --git a/src/components/services/Sonarr.vue b/src/components/services/Sonarr.vue index 3460067..7851b6b 100644 --- a/src/components/services/Sonarr.vue +++ b/src/components/services/Sonarr.vue | |||
@@ -70,7 +70,7 @@ 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 | .then((response) => { | 74 | .then((response) => { |
75 | if (response.status != 200) { | 75 | if (response.status != 200) { |
76 | throw new Error(response.statusText); | 76 | throw new Error(response.statusText); |
@@ -92,7 +92,7 @@ export default { | |||
92 | console.error(e); | 92 | console.error(e); |
93 | this.serverError = true; | 93 | this.serverError = true; |
94 | }); | 94 | }); |
95 | fetch(`${this.item.url}/api/queue?apiKey=${this.item.apikey}`) | 95 | fetch(`${this.item.url}/api/queue?apikey=${this.item.apikey}`) |
96 | .then((response) => { | 96 | .then((response) => { |
97 | if (response.status != 200) { | 97 | if (response.status != 200) { |
98 | throw new Error(response.statusText); | 98 | throw new Error(response.statusText); |