mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-13 16:42:34 +00:00
concat with protocol
This commit is contained in:
@@ -39,6 +39,9 @@ export function getApiUrlOfHeaders(headers: ReadonlyHeaders): string {
|
|||||||
|
|
||||||
if (headers.get("x-zitadel-forward-host")) {
|
if (headers.get("x-zitadel-forward-host")) {
|
||||||
instanceUrl = headers.get("x-zitadel-forward-host") as string;
|
instanceUrl = headers.get("x-zitadel-forward-host") as string;
|
||||||
|
instanceUrl = instanceUrl.startsWith("https://")
|
||||||
|
? instanceUrl
|
||||||
|
: `https://${instanceUrl}`;
|
||||||
} else {
|
} else {
|
||||||
const host = headers.get("host");
|
const host = headers.get("host");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user