Skip to content

Commit

Permalink
Merge pull request #291 from mcclurec/radarr-sonarr-sso-fix
Browse files Browse the repository at this point in the history
Add credentials: "include" back to Radarr and Sonarr
  • Loading branch information
bastienwirtz committed Sep 25, 2021
2 parents d489f6e + d6d0781 commit b2a31c0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/components/services/Radarr.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down
8 changes: 6 additions & 2 deletions src/components/services/Sonarr.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit b2a31c0

Please sign in to comment.