mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-14 03:27:34 +00:00
get host right
This commit is contained in:
@@ -69,7 +69,7 @@ export function getServiceUrlFromHeaders(headers: ReadonlyHeaders): {
|
||||
if (host) {
|
||||
const [hostname, port] = host.split(":");
|
||||
if (hostname !== "localhost") {
|
||||
instanceUrl = host;
|
||||
instanceUrl = host.startsWith("https://") ? host : `https://${host}`;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user