Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Add X-Frame-Options header
Jakub Novake9480d5dc29e
diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjsindex 409555986..f595fd4ea 100644--- a/apps/web/next.config.mjs+++ b/apps/web/next.config.mjs@@ -48,6 +48,16 @@ const codeSnippetsDir = path.resolve('./src/code')const nextConfig = {pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'mdx'],basePath: '',+ headers: async () => [+ {+ source: '/:path*',+ headers: {+ // config to prevent the browser from rendering the page inside a frame or iframe and avoid clickjacking http://en.wikipedia.org/wiki/Clickjacking+ key: 'X-Frame-Options',+ value: 'SAMEORIGIN'+ },+ }+ ],webpack: config => {const codeFilesHash = getFilesHash(codeSnippetsDir)config.cache.version = config.cache.version + delimiter + codeFilesHash