Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions public/_headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Cloudflare Pages headers config.
# https://developers.cloudflare.com/pages/configuration/headers/

# Allow karnstack.com (and subdomains) to embed template previews via iframe.
# CSP frame-ancestors is the modern, browser-respected directive. X-Frame-Options
# ALLOW-FROM is shipped alongside for legacy compatibility; modern browsers ignore it.
/preview/*
Content-Security-Policy: frame-ancestors 'self' https://karnstack.com https://*.karnstack.com
X-Frame-Options: ALLOW-FROM https://karnstack.com

# Templates manifest is read by the karnstack landing page. Short cache so newly
# added templates show up within a minute.
/templates.json
Cache-Control: public, max-age=60
Loading