Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(web): add baseline security response headers

Richie McIlroyaec2373cbaff
diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs
index 6263778e4..f4c436ab1 100644
--- a/apps/web/next.config.mjs
+++ b/apps/web/next.config.mjs
@@ -79,6 +79,31 @@ const nextConfig = {
},
].filter(Boolean),
},
+ async headers() {
+ return [
+ {
+ source: "/:path*",
+ headers: [
+ {
+ key: "X-Content-Type-Options",
+ value: "nosniff",
+ },
+ {
+ key: "Referrer-Policy",
+ value: "strict-origin-when-cross-origin",
+ },
+ {
+ key: "X-DNS-Prefetch-Control",
+ value: "on",
+ },
+ {
+ key: "Strict-Transport-Security",
+ value: "max-age=63072000; includeSubDomains",
+ },
+ ],
+ },
+ ];
+ },
async rewrites() {
return [
{