mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 20:27:32 +00:00
rm comments
This commit is contained in:
@@ -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/",
|
||||||
|
Reference in New Issue
Block a user