mirror of
https://github.com/bastienwirtz/homer.git
synced 2024-12-26 08:38:56 +01:00
Merge pull request #291 from mcclurec/radarr-sonarr-sso-fix
Add credentials: "include" back to Radarr and Sonarr
This commit is contained in:
commit
b2a31c0701
@ -70,7 +70,9 @@ 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}`, {
|
||||||
|
credentials: "include",
|
||||||
|
})
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (response.status != 200) {
|
if (response.status != 200) {
|
||||||
throw new Error(response.statusText);
|
throw new Error(response.statusText);
|
||||||
@ -92,7 +94,9 @@ 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}`, {
|
||||||
|
credentials: "include",
|
||||||
|
})
|
||||||
.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,9 @@ 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}`, {
|
||||||
|
credentials: "include",
|
||||||
|
})
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (response.status != 200) {
|
if (response.status != 200) {
|
||||||
throw new Error(response.statusText);
|
throw new Error(response.statusText);
|
||||||
@ -92,7 +94,9 @@ 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}`, {
|
||||||
|
credentials: "include",
|
||||||
|
})
|
||||||
.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