This commit is contained in:
Max Peintner
2025-02-13 10:33:01 +01:00
parent 3696978824
commit 72f1b7cca4

View File

@@ -80,7 +80,7 @@ export function getServiceUrlFromHeaders(headers: ReadonlyHeaders): {
} else if (process.env.ZITADEL_API_URL) {
instanceUrl = process.env.ZITADEL_API_URL;
} else {
const host = headers.get("x-zitadel-forward-host") ?? headers.get("host");
const host = headers.get("host");
if (host) {
const [hostname, port] = host.split(":");
@@ -94,8 +94,6 @@ export function getServiceUrlFromHeaders(headers: ReadonlyHeaders): {
throw new Error("Service URL could not be determined");
}
console.log("Service URL", instanceUrl);
return {
serviceUrl: instanceUrl,
};