Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix(web): extend clickjacking protection to admin, verify-otp and auth subpaths
Richie McIlroy799e004339dc
diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjsindex a1eaa09e8..8f3c91423 100644--- a/apps/web/next.config.mjs+++ b/apps/web/next.config.mjs@@ -103,25 +103,20 @@ const nextConfig = {],},// Clickjacking protection for the authenticated/interactive app- // surfaces only. Shared videos (/s, /embed) and public collections- // (/c) are intentionally embeddable, so X-Frame-Options is NOT applied- // to them.- {- source: "/dashboard/:path*",- headers: [{ key: "X-Frame-Options", value: "SAMEORIGIN" }],- },- {- source: "/onboarding/:path*",+ // surfaces (including subpaths). Shared videos (/s, /embed) and public+ // collections (/c) are intentionally embeddable, so X-Frame-Options is+ // NOT applied to them.+ ...[+ "/dashboard/:path*",+ "/onboarding/:path*",+ "/admin/:path*",+ "/verify-otp/:path*",+ "/login/:path*",+ "/signup/:path*",+ ].map((source) => ({+ source,headers: [{ key: "X-Frame-Options", value: "SAMEORIGIN" }],- },- {- source: "/login",- headers: [{ key: "X-Frame-Options", value: "SAMEORIGIN" }],- },- {- source: "/signup",- headers: [{ key: "X-Frame-Options", value: "SAMEORIGIN" }],- },+ })),];},async rewrites() {