Repository navigation
Your Cloudflare Turnstile may never be issuing a token — here is the one-liner that tells you #1
ibrahimbdr
started this conversation in
Show and tell
Replies: 1 comment
|
Published a readable version of this with the same snippet and the full ladder (detect → read the token → test-key path → what not to do): https://dev.to/ibrahimbdr/your-cloudflare-turnstile-may-never-be-issuing-a-token-here-is-the-one-liner-that-tells-you-4h75 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I was writing browser QA automation and kept hitting contact forms where the Turnstile widget was in the DOM, marked rendered, its challenge iframe returned 200 — and
cf-turnstile-responsestayed empty forever.That is not a bot check failing. It is no token being issued at all, which means no real user can submit that form either, and nothing throws in the page.
Paste this in devtools on any page with a Turnstile widget:
widgets: 1, token: 0after 15 seconds means you are in this state. Reproduced on a live site in both headless and headed Chrome.The two causes I found, in order of likelihood:
reset()after a failed submit. Turnstile tokens are single-use, so a retry without reset leaves the field empty and the backend rejects it as if you were a bot.One related thing worth knowing if you test such forms: Cloudflare's documented test sitekey
1x00000000000000000000AAmints a token with zero interaction, so you can exercise the widget on staging without a solver and without touching production keys. The token is only accepted end to end if the backend verifies with the matching test secret1x0000000000000000000000000000000AA— that is the part people forget, and swapping production keys to make a test pass is how you ship a hole.I wrote the full procedure up as an MIT skill (detect → read the token → the test-key path → the line you do not cross on sites you do not own): https://github.com/Appit-labs/live-qa
It is not a solver. It will not bypass anything on a site you do not own, and it says so itself.
All reactions