]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - src/components/services/Sonarr.vue
Add Prometheus custom component
[github/bastienwirtz/homer.git] / src / components / services / Sonarr.vue
index 7851b6b6b1dbc484e2da5218a2fa7926c239f746..0270255995bfe9e35625d95c0aef81daf39c4053 100644 (file)
@@ -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);