Skip to content

fix(contact): reject submissions with no Turnstile token again - #32

Merged
dyascj merged 1 commit into
mainfrom
fix/turnstile-enforce-token
Jul 31, 2026
Merged

fix(contact): reject submissions with no Turnstile token again#32
dyascj merged 1 commit into
mainfrom
fix/turnstile-enforce-token

Conversation

@dyascj

@dyascj dyascj commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Restores strict verification now that the widget is confirmed working.

The permissive setting was a stopgap from when the widget was not rendering. Allowing tokenless submissions waves past the crudest spam, since a bot that never runs JavaScript produces no token at all; Turnstile was only catching the ones that tried and failed.

The rejection message now points anyone whose blocker eats challenges.cloudflare.com at the other contact links, rather than leaving them at a dead end with no recourse.

Rolled out as an unpromoted version first and confirmed by hand in a real browser before it took any production traffic. A Turnstile token cannot be produced from an automated browser, so no test I can write covers the path that matters, and this same change took the form down last time.

Already live. 18 unit tests, 28 e2e against workerd, typecheck and build clean.

The permissive setting was a stopgap from when the widget was not
rendering. It let anything without a token through, which waves past the
crudest spam: a bot that never runs JavaScript produces no token at all,
so Turnstile was only catching the ones that tried and failed.

Now that the widget is confirmed working for real visitors, a missing token
is refused again. The message points anyone whose blocker eats
challenges.cloudflare.com at the other contact links rather than leaving
them at a dead end.

Verified as an unpromoted version on real infrastructure before taking
production traffic, since a Turnstile token cannot be produced from an
automated browser and this same change broke the form last time.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 31, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
cjdyas-design 9fc9e68 Commit Preview URL

Branch Preview URL
Jul 31 2026, 07:50 PM

@dyascj
dyascj merged commit fa4340b into main Jul 31, 2026
3 checks passed
@dyascj
dyascj deleted the fix/turnstile-enforce-token branch July 31, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant