rm comments

This commit is contained in:
Max Peintner
2025-06-27 11:38:52 +02:00
parent ba7bdb7517
commit 49b11375e5

View File

@@ -48,27 +48,6 @@ export async function middleware(request: NextRequest) {
requestHeaders.set("x-zitadel-i18n-organization", organization); requestHeaders.set("x-zitadel-i18n-organization", organization);
} }
// Check if the request is for the /login route that handles the auth request for OIDC none prompt
// let isLoginRouteMatched = request.nextUrl.pathname.startsWith("/login/");
// let securitySettings;
// if (isLoginRouteMatched) {
// securitySettings = await loadSecuritySettings(request);
// if (securitySettings?.embeddedIframe?.enabled) {
// const response = NextResponse.next({
// request: { headers: requestHeaders },
// });
// response.headers.set(
// "Content-Security-Policy",
// `${DEFAULT_CSP} frame-ancestors ${securitySettings.embeddedIframe.allowedOrigins.join(" ")};`,
// );
// response.headers.delete("X-Frame-Options");
// return response;
// }
// }
// Only run the rest of the logic for the original matcher paths // Only run the rest of the logic for the original matcher paths
const proxyPaths = [ const proxyPaths = [
"/.well-known/", "/.well-known/",