]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - src/components/services/Radarr.vue
Merge pull request #316 from robinschneider/apikey
[github/bastienwirtz/homer.git] / src / components / services / Radarr.vue
index 93831a7bd87121c10fb5b5e638f94d59eae37ed2..a9cdedf0defb4ee336f829d539395e902f2febde 100644 (file)
@@ -70,9 +70,8 @@ export default {
   },
   methods: {
     fetchConfig: function () {
-      fetch(`${this.item.url}/api/health`, {
+      fetch(`${this.item.url}/api/health?apikey=${this.item.apikey}`, {
         credentials: "include",
-        headers: { "X-Api-Key": `${this.item.apikey}` },
       })
         .then((response) => {
           if (response.status != 200) {
@@ -95,9 +94,8 @@ export default {
           console.error(e);
           this.serverError = true;
         });
-      fetch(`${this.item.url}/api/queue`, {
+      fetch(`${this.item.url}/api/queue?apikey=${this.item.apikey}`, {
         credentials: "include",
-        headers: { "X-Api-Key": `${this.item.apikey}` },
       })
         .then((response) => {
           if (response.status != 200) {