mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 07:17:34 +00:00
nexturl protocol
This commit is contained in:
@@ -113,7 +113,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")
|
const forwardedProto = request.headers.get("x-forwarded-proto")
|
||||||
? `${request.headers.get("x-forwarded-proto")}:`
|
? `${request.headers.get("x-forwarded-proto")}:`
|
||||||
: request.protocol;
|
: request.nextUrl.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