check -csp: allow Turnstile frame #43

Merged
jcoffey-dev merged 1 commits from fix/csp-turnstile-frame into main 2026-11-21 19:45:01 +00:00
Owner

A form with turnstile_sitekey loads the challenges.cloudflare.com script, which draws the check in a frame from the same host. The generated policy left frame-src none, so the widget was blocked. Scripts known to frame their own host now add it to frame-src. Test: TestPolicyTurnstileFrame.

A form with turnstile_sitekey loads the challenges.cloudflare.com script, which draws the check in a frame from the same host. The generated policy left frame-src none, so the widget was blocked. Scripts known to frame their own host now add it to frame-src. Test: TestPolicyTurnstileFrame.
jcoffey-dev added 1 commit 2026-11-21 19:42:48 +00:00
check -csp: allow Turnstile's frame
ci / editor-ui (pull_request) Successful in 1m41s
ci / go (pull_request) Successful in 1m54s
0fcf2ce7d2
A form with turnstile_sitekey loads challenges.cloudflare.com's script,
which draws the check in a frame from the same host. The policy put the
host in script-src only and left frame-src 'none', so the widget was
blocked. Scripts known to frame their own host now add it to frame-src.
jcoffey-dev merged commit 22973b916d into main 2026-11-21 19:45:01 +00:00
jcoffey-dev deleted branch fix/csp-turnstile-frame 2026-11-21 19:45:02 +00:00
Sign in to join this conversation.