From eecd0db92e84eab5299441a9eb20f1e1d16691fb Mon Sep 17 00:00:00 2001
From: Colin <mcclurec@gmail.com>
Date: Wed, 22 Sep 2021 10:23:24 -0700
Subject: Add credentials: "include" back to Radarr`

---
 src/components/services/Radarr.vue | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'src/components/services/Radarr.vue')

diff --git a/src/components/services/Radarr.vue b/src/components/services/Radarr.vue
index 9d38292..a9cdedf 100644
--- a/src/components/services/Radarr.vue
+++ b/src/components/services/Radarr.vue
@@ -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);
-- 
cgit v1.2.3

