Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix(web): scope X-Frame-Options to app routes and disable DNS prefetch
Richie McIlroy883f344c9734
diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjsindex f4c436ab1..a1eaa09e8 100644--- a/apps/web/next.config.mjs+++ b/apps/web/next.config.mjs@@ -94,7 +94,7 @@ const nextConfig = {},{key: "X-DNS-Prefetch-Control",- value: "on",+ value: "off",},{key: "Strict-Transport-Security",@@ -102,6 +102,26 @@ 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*",+ 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() {