mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-14 02:59:30 +00:00
Update apps/login/src/lib/service.ts
Co-authored-by: Elio Bischof <elio@zitadel.com>
This commit is contained in:
@@ -111,7 +111,7 @@ export function getServiceUrlFromHeaders(headers: ReadonlyHeaders): {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function constructUrl(request: NextRequest, path: string) {
|
export function constructUrl(request: NextRequest, path: string) {
|
||||||
const forwardedProto = request.headers.get("x-forwarded-proto") ?? "https";
|
const forwardedProto = request.headers.get("x-forwarded-proto") ? `${request.headers.get("x-forwarded-proto")}:` : request.protocol;
|
||||||
|
|
||||||
const forwardedHost =
|
const forwardedHost =
|
||||||
request.headers.get("x-zitadel-forward-host") ??
|
request.headers.get("x-zitadel-forward-host") ??
|
||||||
|
Reference in New Issue
Block a user