AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(frontend): send CSP frame-ancestors and Referrer-Policy on every route (#15030)
Ubbea4c427fec7a7
diff --git a/autogpt_platform/frontend/next.config.mjs b/autogpt_platform/frontend/next.config.mjsindex 00b8cbf31b..9bef02203b 100644--- a/autogpt_platform/frontend/next.config.mjs+++ b/autogpt_platform/frontend/next.config.mjs@@ -117,6 +117,13 @@ const nextConfig = {headers: [{ key: "X-Content-Type-Options", value: "nosniff" },{ key: "X-Frame-Options", value: "SAMEORIGIN" },+ // Modern equivalent of X-Frame-Options; browsers that support CSP+ // use this and ignore the legacy header, so send both.+ { key: "Content-Security-Policy", value: "frame-ancestors 'self'" },+ {+ key: "Referrer-Policy",+ value: "strict-origin-when-cross-origin",+ },// Enables Sentry browser JS self-profiling.{ key: "Document-Policy", value: "js-profiling" },],