]> git.immae.eu Git - github/bastienwirtz/homer.git/commitdiff
Add credentials: "include" back to Radarr`
authorColin <mcclurec@gmail.com>
Wed, 22 Sep 2021 17:23:24 +0000 (10:23 -0700)
committerGitHub <noreply@github.com>
Wed, 22 Sep 2021 17:23:24 +0000 (10:23 -0700)
src/components/services/Radarr.vue

index 9d3829279ca55f5ee48cf829561609ce3af2c095..a9cdedf0defb4ee336f829d539395e902f2febde 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);