The design language that makes your AI harness better at design.
JavaScript
Use SAMEORIGIN globally instead of per-path X-Frame-Options override
Paul Bakaus3769057e791d
diff --git a/scripts/build.js b/scripts/build.jsindex e2a3759ba..621ca683a 100644--- a/scripts/build.js+++ b/scripts/build.js@@ -477,7 +477,7 @@ function generateCFConfig(buildDir) {// _headers: security + cache headersconst headers = `/*X-Content-Type-Options: nosniff- X-Frame-Options: DENY+ X-Frame-Options: SAMEORIGIN# HTML pages: browser always revalidates, CDN caches 1h/*.html@@ -503,10 +503,6 @@ function generateCFConfig(buildDir) {/antipattern-images/*Cache-Control: public, max-age=604800, stale-while-revalidate=86400-# Antipattern examples: allow same-origin framing (visual-mode page embeds these)-/antipattern-examples/*- X-Frame-Options: SAMEORIGIN-# Root static assets (favicon, og-image, etc.)/favicon.svgCache-Control: public, max-age=604800, stale-while-revalidate=86400