mirror of
https://github.com/bastienwirtz/homer.git
synced 2025-06-20 17:57:53 +02:00
Merge pull request #254 from rvankraaij/fix-cors-radarr-sonarr
Fix cors issue with radarr and sonarr services
This commit is contained in:
commit
6b54eedae7
@ -70,10 +70,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
fetchConfig: function () {
|
fetchConfig: function () {
|
||||||
fetch(`${this.item.url}/api/health`, {
|
fetch(`${this.item.url}/api/health?apikey=${this.item.apikey}`)
|
||||||
credentials: "include",
|
|
||||||
headers: { "X-Api-Key": `${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);
|
||||||
@ -95,10 +92,7 @@ export default {
|
|||||||
console.error(e);
|
console.error(e);
|
||||||
this.serverError = true;
|
this.serverError = true;
|
||||||
});
|
});
|
||||||
fetch(`${this.item.url}/api/queue`, {
|
fetch(`${this.item.url}/api/queue?apikey=${this.item.apikey}`)
|
||||||
credentials: "include",
|
|
||||||
headers: { "X-Api-Key": `${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,10 +70,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
fetchConfig: function () {
|
fetchConfig: function () {
|
||||||
fetch(`${this.item.url}/api/health`, {
|
fetch(`${this.item.url}/api/health?apikey=${this.item.apikey}`)
|
||||||
credentials: "include",
|
|
||||||
headers: { "X-Api-Key": `${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);
|
||||||
@ -95,10 +92,7 @@ export default {
|
|||||||
console.error(e);
|
console.error(e);
|
||||||
this.serverError = true;
|
this.serverError = true;
|
||||||
});
|
});
|
||||||
fetch(`${this.item.url}/api/queue`, {
|
fetch(`${this.item.url}/api/queue?apikey=${this.item.apikey}`)
|
||||||
credentials: "include",
|
|
||||||
headers: { "X-Api-Key": `${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…
x
Reference in New Issue
Block a user