Skip to content

Commit eac7916

Browse files
karngyanclaude
andcommitted
fix(headers): allow localhost frame-ancestors for preview
Lets local karnstack dev iframe https://resumex.karnstack.com/preview/* without tripping the production CSP. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent c08e7ef commit eac7916

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎public/_headers‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# CSP frame-ancestors is the modern, browser-respected directive. X-Frame-Options
66
# ALLOW-FROM is shipped alongside for legacy compatibility; modern browsers ignore it.
77
/preview/*
8-
Content-Security-Policy: frame-ancestors 'self' https://karnstack.com https://*.karnstack.com
8+
Content-Security-Policy: frame-ancestors 'self' https://karnstack.com https://*.karnstack.com http://localhost:* http://127.0.0.1:*
99
X-Frame-Options: ALLOW-FROM https://karnstack.com
1010

1111
# Templates manifest is read by the karnstack landing page. Short cache so newly

0 commit comments

Comments
 (0)