]> git.immae.eu Git - github/bastienwirtz/homer.git/commitdiff
Fix CORS issue for Radarr and Sonarr services 254/head
authorrvk <329491+rvankraaij@users.noreply.github.com>
Wed, 4 Aug 2021 19:26:15 +0000 (21:26 +0200)
committerrvk <329491+rvankraaij@users.noreply.github.com>
Wed, 4 Aug 2021 19:26:15 +0000 (21:26 +0200)
src/components/services/Radarr.vue
src/components/services/Sonarr.vue

index 3b8808368d802348170badf36c8ef782c56b9f3e..9d3829279ca55f5ee48cf829561609ce3af2c095 100644 (file)
@@ -70,7 +70,7 @@ 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}`)
         .then((response) => {
           if (response.status != 200) {
             throw new Error(response.statusText);
@@ -92,7 +92,7 @@ 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}`)
         .then((response) => {
           if (response.status != 200) {
             throw new Error(response.statusText);
index 3460067529b7b6809225060896b90483b28d8396..7851b6b6b1dbc484e2da5218a2fa7926c239f746 100644 (file)
@@ -70,7 +70,7 @@ 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}`)
         .then((response) => {
           if (response.status != 200) {
             throw new Error(response.statusText);
@@ -92,7 +92,7 @@ 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}`)
         .then((response) => {
           if (response.status != 200) {
             throw new Error(response.statusText);