mirror of
https://github.com/bastienwirtz/homer.git
synced 2025-01-26 07:48:58 +01:00
Fix CORS issue for Radarr and Sonarr services
This commit is contained in:
parent
25f99adc6c
commit
304362adfd
@ -70,7 +70,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
fetchConfig: function () {
|
fetchConfig: function () {
|
||||||
fetch(`${this.item.url}/api/health?apiKey=${this.item.apikey}`)
|
fetch(`${this.item.url}/api/health?apikey=${this.item.apikey}`)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (response.status != 200) {
|
if (response.status != 200) {
|
||||||
throw new Error(response.statusText);
|
throw new Error(response.statusText);
|
||||||
@ -92,7 +92,7 @@ export default {
|
|||||||
console.error(e);
|
console.error(e);
|
||||||
this.serverError = true;
|
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) => {
|
.then((response) => {
|
||||||
if (response.status != 200) {
|
if (response.status != 200) {
|
||||||
throw new Error(response.statusText);
|
throw new Error(response.statusText);
|
||||||
|
@ -70,7 +70,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
fetchConfig: function () {
|
fetchConfig: function () {
|
||||||
fetch(`${this.item.url}/api/health?apiKey=${this.item.apikey}`)
|
fetch(`${this.item.url}/api/health?apikey=${this.item.apikey}`)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (response.status != 200) {
|
if (response.status != 200) {
|
||||||
throw new Error(response.statusText);
|
throw new Error(response.statusText);
|
||||||
@ -92,7 +92,7 @@ export default {
|
|||||||
console.error(e);
|
console.error(e);
|
||||||
this.serverError = true;
|
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) => {
|
.then((response) => {
|
||||||
if (response.status != 200) {
|
if (response.status != 200) {
|
||||||
throw new Error(response.statusText);
|
throw new Error(response.statusText);
|
||||||
|
Loading…
Reference in New Issue
Block a user