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