Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix(web): limit baseline headers to nosniff, referrer policy and DNS prefetch control
Richie McIlroy9987c199b414
diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjsindex a240d12c8..ce8e40d17 100644--- a/apps/web/next.config.mjs+++ b/apps/web/next.config.mjs@@ -99,41 +99,18 @@ const nextConfig = {async headers() {return [{- source: "/:path*",+ source: "/(.*)",headers: [- {- key: "X-Content-Type-Options",- value: "nosniff",- },- {- key: "Referrer-Policy",- value: "strict-origin-when-cross-origin",- },- {- key: "X-DNS-Prefetch-Control",- value: "off",- },- {- key: "Strict-Transport-Security",- value: "max-age=63072000; includeSubDomains",- },+ { key: "X-Content-Type-Options", value: "nosniff" },+ { key: "X-DNS-Prefetch-Control", value: "off" },+ ],+ },+ {+ source: "/((?!api/auth/).*)",+ headers: [+ { key: "Referrer-Policy", value: "strict-origin-when-cross-origin" },],},- // Clickjacking protection for the authenticated/interactive app- // 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" }],- })),];},async rewrites() {