Fix CORS issue for Radarr and Sonarr services

This commit is contained in:
rvk 2021-08-04 21:26:15 +02:00
parent 25f99adc6c
commit 304362adfd
2 changed files with 4 additions and 4 deletions

View File

@ -70,7 +70,7 @@ 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}`)
.then((response) => {
if (response.status != 200) {
throw new Error(response.statusText);
@ -92,7 +92,7 @@ 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}`)
.then((response) => {
if (response.status != 200) {
throw new Error(response.statusText);

View File

@ -70,7 +70,7 @@ 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}`)
.then((response) => {
if (response.status != 200) {
throw new Error(response.statusText);
@ -92,7 +92,7 @@ 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}`)
.then((response) => {
if (response.status != 200) {
throw new Error(response.statusText);