feat(web): add Cloudflare Turnstile to the public forms

Render the widget on the contact, event registration and both application
forms, and verify the token with Siteverify in each action before anything
is written to the CMS. Verification fails closed. The check is off unless
both TURNSTILE_SITE_KEY and TURNSTILE_SECRET_KEY are set.

Allow challenges.cloudflare.com in script-src and frame-src.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-10-24 12:05:51 +02:00
co-authored by Claude Opus 5.5
parent 0b2c8d581f
commit 709a978da5
17 changed files with 475 additions and 15 deletions
+3
View File
@@ -129,6 +129,9 @@ services:
STRAPI_TOKEN: ${STRAPI_TOKEN:-}
# Canonical URLs, hreflang alternates and JSON-LD are built from this.
SITE_URL: ${SITE_URL:-http://localhost:3000}
# Cloudflare Turnstile on the public forms - off unless both are set.
TURNSTILE_SITE_KEY: ${TURNSTILE_SITE_KEY:-}
TURNSTILE_SECRET_KEY: ${TURNSTILE_SECRET_KEY:-}
volumes:
# Panton and the Arabic faces are licensed and deliberately excluded from
# the image (.dockerignore). Mounting the host folder read-only lets a