Merge pull request #254 from rvankraaij/fix-cors-radarr-sonarr

Fix cors issue with radarr and sonarr services
This commit is contained in:
Bastien Wirtz 2021-08-15 10:28:51 -07:00 committed by GitHub
commit 6b54eedae7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 16 deletions

View File

@ -70,10 +70,7 @@ export default {
},
methods: {
fetchConfig: function () {
fetch(`${this.item.url}/api/health`, {
credentials: "include",
headers: { "X-Api-Key": `${this.item.apikey}` },
})
fetch(`${this.item.url}/api/health?apikey=${this.item.apikey}`)
.then((response) => {
if (response.status != 200) {
throw new Error(response.statusText);
@ -95,10 +92,7 @@ export default {
console.error(e);
this.serverError = true;
});
fetch(`${this.item.url}/api/queue`, {
credentials: "include",
headers: { "X-Api-Key": `${this.item.apikey}` },
})
fetch(`${this.item.url}/api/queue?apikey=${this.item.apikey}`)
.then((response) => {
if (response.status != 200) {
throw new Error(response.statusText);

View File

@ -70,10 +70,7 @@ export default {
},
methods: {
fetchConfig: function () {
fetch(`${this.item.url}/api/health`, {
credentials: "include",
headers: { "X-Api-Key": `${this.item.apikey}` },
})
fetch(`${this.item.url}/api/health?apikey=${this.item.apikey}`)
.then((response) => {
if (response.status != 200) {
throw new Error(response.statusText);
@ -95,10 +92,7 @@ export default {
console.error(e);
this.serverError = true;
});
fetch(`${this.item.url}/api/queue`, {
credentials: "include",
headers: { "X-Api-Key": `${this.item.apikey}` },
})
fetch(`${this.item.url}/api/queue?apikey=${this.item.apikey}`)
.then((response) => {
if (response.status != 200) {
throw new Error(response.statusText);