mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-12 06:06:37 +03:00
Fix visual-mode iframe blocked by X-Frame-Options: DENY
The global _headers rule set DENY for all paths, preventing the /visual-mode/ page from embedding /antipattern-examples/ in an iframe. Add a path-specific SAMEORIGIN override for /antipattern-examples/*. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
e7afda2c55
commit
e284ef882b
@@ -503,6 +503,10 @@ 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.svg
|
||||
Cache-Control: public, max-age=604800, stale-while-revalidate=86400
|
||||
|
||||
Reference in New Issue
Block a user