From 78a6c1765d8e16d9a38ce9044902d949e8fb75e6 Mon Sep 17 00:00:00 2001 From: Max Peintner Date: Mon, 10 Feb 2025 17:55:00 +0100 Subject: [PATCH] fix condition --- apps/login/src/lib/service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/login/src/lib/service.ts b/apps/login/src/lib/service.ts index a71ecaa3ab..81c95bdbb7 100644 --- a/apps/login/src/lib/service.ts +++ b/apps/login/src/lib/service.ts @@ -75,7 +75,7 @@ export function getServiceUrlFromHeaders(headers: ReadonlyHeaders): { // use the forwarded host if available (multitenant), otherwise fall back to the host of the deployment itself if (forwardedHost) { instanceUrl = forwardedHost; - instanceUrl = instanceUrl.startsWith("https://") + instanceUrl = instanceUrl.startsWith("http://") ? instanceUrl : `https://${instanceUrl}`; } else if (process.env.ZITADEL_API_URL) {