Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
feat(headers): add security headers
Marc Seitz6be898691d76
diff --git a/next.config.mjs b/next.config.mjsindex 669540ec..1d32a3d5 100644--- a/next.config.mjs+++ b/next.config.mjs@@ -22,6 +22,27 @@ const nextConfig = {},];},+ async headers() {+ return [+ {+ source: "/:path*",+ headers: [+ {+ key: "Referrer-Policy",+ value: "no-referrer-when-downgrade",+ },+ {+ key: "X-DNS-Prefetch-Control",+ value: "on",+ },+ {+ key: "X-Frame-Options",+ value: "DENY",+ },+ ],+ },+ ];+ },experimental: {outputFileTracingIncludes: {"/api/mupdf/*": ["./node_modules/mupdf/dist/*.wasm"],