rm header logs

This commit is contained in:
Max Peintner
2025-01-28 15:58:16 +01:00
parent 5a801d6de4
commit ad0397af7c
2 changed files with 0 additions and 19 deletions

View File

@@ -1,16 +0,0 @@
import { NextRequest, NextResponse } from "next/server";
export const dynamic = "force-dynamic";
export const revalidate = false;
export const fetchCache = "default-no-store";
export async function GET(request: NextRequest) {
const headers = request.headers;
const headersObject: Record<string, string> = {};
headers.forEach((value, key) => {
headersObject[key] = value;
});
return NextResponse.json(headersObject);
}

View File

@@ -53,8 +53,5 @@ export function getApiUrlOfHeaders(headers: ReadonlyHeaders): string {
}
}
console.log("x-zitadel-forward-host" + headers.get("x-zitadel-forward-host"));
console.log("host" + headers.get("host"));
return instanceUrl;
}