mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-24 16:17:47 +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")) {
|
||||
instanceUrl = headers.get("x-zitadel-forward-host") as string;
|
||||
instanceUrl = instanceUrl.startsWith("https://")
|
||||
? instanceUrl
|
||||
: `https://${instanceUrl}`;
|
||||
} else {
|
||||
const host = headers.get("host");
|
||||
|
||||
|
Reference in New Issue
Block a user