diff --git a/Plan/react/dashboard/src/service/backendConfiguration.js b/Plan/react/dashboard/src/service/backendConfiguration.js index 2f7bebd07..8c40af106 100644 --- a/Plan/react/dashboard/src/service/backendConfiguration.js +++ b/Plan/react/dashboard/src/service/backendConfiguration.js @@ -6,8 +6,14 @@ const javaReplaced = { } const isCurrentAddress = (address) => { - const is = window.location.href.startsWith(address); - if (!is) console.warn(`Configured address ${address} did not match start of ${window.location.href}, falling back to relative address. Configure 'Webserver.Alternative_IP' settings to point to your address.`) + let is = window.location.href.startsWith(address); + const usingProxyHttps = window.location.href.startsWith("https") && address.startsWith("http"); + if (usingProxyHttps) { + is = window.location.href.replace('https', '').startsWith(address.replace('http')); + } + if (!is) { + console.warn(`Configured address ${address} did not match start of ${window.location.href}, falling back to relative address. Configure 'Webserver.Alternative_IP' settings to point to your address.`) + } return is; }