What siteverify answered
On 16.10.2026 we posted to https://challenges.cloudflare.com/turnstile/v0/siteverify with each of Cloudflare's published test secrets, a made-up secret, and empty fields. Every reply came back like this:
| What we sent | HTTP | error-codes |
|---|---|---|
| Test secret that always fails | 200 | invalid-input-response |
| Test secret for a spent token | 200 | timeout-or-duplicate |
| A made-up secret | 400 | invalid-input-secret |
Empty response | 200 | missing-input-response |
Empty secret | 400 | missing-input-secret |
| A GET request | 405 | bad-request, message “This API expects POST requests.” |
Two details catch people out. The failures about the token come back with HTTP 200, so code that checks only the status thinks it passed; read success. And the test secret that always passes accepted any string we sent as the token, even not-a-real-token, so a form tested only with test keys proves nothing about your token handling.
timeout-or-duplicate: the token was used or is too old
Cloudflare's docs say each token is valid for 300 seconds and can be validated only once. So this code has two causes, and both are common on contact forms:
- It was verified twice. Your form handler checks the token, and then something else checks it again: a retry after a timeout, a second handler, or a form backend that also verifies Turnstile. Verify in one place only.
- The visitor took more than five minutes between the widget passing and pressing Send, or pressed Send again after a failure. Reset the widget when sending fails so the next attempt carries a fresh token, and let a long-open page refresh its token.
// Cloudflare Worker or any server: verify once, right when the form arrives
const form = await request.formData();
const token = form.get("cf-turnstile-response");
if (!token) return new Response("Please complete the check", { status: 400 });
const result = await fetch("https://challenges.cloudflare.com/turnstile/v0/siteverify", {
method: "POST", // GET gets 405 "This API expects POST requests."
body: new URLSearchParams({ secret: env.TURNSTILE_SECRET_KEY, response: token }),
}).then((r) => r.json());
if (!result.success) {
console.log("turnstile", result["error-codes"]); // e.g. ["timeout-or-duplicate"]
return new Response("The check expired. Please try again.", { status: 400 });
}invalid-input-response and invalid-input-secret
invalid-input-response is about the token: Cloudflare describes it as invalid, malformed or expired. A token from another site key, a token truncated by your code, or the field name typed wrong all end here. The form field is cf-turnstile-response.
invalid-input-secret came back with HTTP 400, so it is the one most likely to show up as a server error rather than a polite “try again”. It means the secret key is wrong, from another widget, or still the test secret in production. Copy it again from the widget's settings in the Cloudflare dashboard and store it as a server secret.
Error 110200 in the browser: domain not allowed
This one happens before any token exists. We rendered Formgong's own production site key on localhost and on a .test host. Both times the widget showed “Unable to connect to website” with a Troubleshoot link, the browser console showed a 400, and the error-callback received 110200. Cloudflare's error list calls it “Domain not authorized”: add the domain under the widget's hostnames in the dashboard. For local development, use Cloudflare's test site keys instead of adding localhost to a production widget.
// After a failed send, give the visitor a fresh token for the next try
turnstile.render("#captcha", {
sitekey: "YOUR_SITE_KEY",
"error-callback": (code) => {
console.warn("Turnstile error", code); // 110200 = domain not allowed for this key
return true; // you handled it
},
});
async function onSendFailed() {
turnstile.reset("#captcha"); // the old token cannot be verified again
}Turnstile on a Formgong form
Formgong verifies the Turnstile token on its server when the submission reaches https://formgong.com/submit and also checks that the hostname in Cloudflare's answer is your site, so you do not write a verification of your own that could run twice. Turn on Require Cloudflare Turnstile in the form settings and enter your own site key and secret there. The setup and a comparison of the three captcha services are in Turnstile vs reCAPTCHA vs hCaptcha.
Frequently asked questions
What does timeout-or-duplicate mean in Turnstile?
The token was already validated once, or it is older than 300 seconds. Each token can be checked only once, so verify in one place and reset the widget after a failed send.
Why does Turnstile siteverify return 200 when verification failed?
On our test, token problems such as invalid-input-response and timeout-or-duplicate came back with HTTP 200 and success false. Check the success field, not the status.
What is Turnstile error 110200?
The site key is not allowed on the current domain. Add the domain under the widget's hostnames, or use Cloudflare's test site keys on localhost.
Why do Turnstile test keys accept any token?
The always-pass test secret answered success for every string we sent, including a made-up token. Test the real flow with a real widget before launch.
Sources and documentation
Official references for this guide: Cloudflare: Turnstile server-side validation, Cloudflare: Turnstile client-side error codes, Cloudflare: Turnstile testing (test keys). HTML contact form, where data is stored.
Related guides
- Lovable form submissions to email and Telegram
- HTML contact form without a backend: a working example
- How to send website form submissions to Telegram
- Contact form not sending email? Check where it stops
- Managing website leads in Telegram without a CRM
- Form backend for Lovable, Bolt, v0, Cursor
- Telegram bot for a contact form: build or skip?
- GDPR form backend: 7 checks before you choose
- Lovable form not sending email? 6 fixes
- Netlify Forms not working? React and Bolt fixes
- Stop contact form spam without a CAPTCHA
- GitHub Pages contact form: a working setup
- Mailto Form in HTML: Why It Fails and What to Use
- HTML form to Google Sheets: 2 free methods
- Webflow form submission limit: what to do at 50
- Turnstile vs reCAPTCHA vs hCaptcha for forms
- Contact Form 7 and Elementor forms to Telegram
- Squarespace contact form not sending email?
- Shopify contact form: where do messages go?
- Google Form to Telegram: free Apps Script way
- Wix contact form not sending email? Fixes
- EU / GDPR Formspree alternatives compared
- HTML form action attribute explained
- How do HTML forms work? The HTTP request
- Types of Injection Attacks on Web Forms (2026)
- Indirect Prompt Injection in MCP
- MCP Rug Pull Attack: Detect Tool Changes
- Form without a backend: 7 ways that work
- Thank-you page after form submission (HTML)
- Indirect Prompt Injection Examples (2023–2026)
- Indirect Prompt Injection via Email
- What Is Tool Poisoning in MCP?
- WordPress contact form without a plugin
- Send email from frontend JavaScript
- How to Prevent Indirect Prompt Injection
- Honeypot Form Field: How to Add One That Works
- Contact Form with File Upload (HTML, No PHP)
- Angular contact form without a backend
- Send form submissions to Slack or Discord without Zapier
- Verify a form webhook signature (HMAC-SHA256)
- Contact forms that send nothing: 793 AI-built sites tested
- v0 contact form that actually sends: 3 ways
- How we tested AI-built contact forms, and 12 bugs we hit
- Cloudflare vs Netlify free plan: hosting that never pauses
- EmailJS 412 “Gmail_API: Invalid grant”: reconnect Gmail
- Resend “You can only send testing emails”: verify a domain
- Supabase Edge Function blocked by CORS policy: 3 causes
- Formspree “Form not found” and other errors: fixes
- Web3Forms errors: “Invalid access key” and 403 explained
- How to add customer reviews to your website for free
- Getform not working? “This form has been deleted” and more
- Next.js contact form not working? 6 errors, reproduced
- Webflow form not sending email? What to check, tested
- FormSubmit not working? “This form needs Activation” fix
- Contact form “TypeError: Failed to fetch”: causes and fixes
- WooCommerce product enquiry form
- Contact Form 7 vs WPForms
- Gravity Forms alternative free
- WordPress contact form block
- 535-5.7.8 Username and Password not accepted (Gmail)
- 535 5.7.3 Authentication unsuccessful: Office 365 SMTP
- Nodemailer “Missing credentials for "PLAIN"”: the fix
- Nodemailer “Greeting never received”: port 465 fix
- Nodemailer SSL “wrong version number”: the port fix
- Nodemailer “self-signed certificate in certificate chain”
- Nodemailer ECONNREFUSED 127.0.0.1:587: missing SMTP host
- SendGrid “authorization grant is invalid”: 401 fix
- Mailgun 401 Forbidden: why the API rejects your key
- “Edge Function returned a non-2xx status code”: the fix
- Next.js “Body exceeded 1 MB limit”: Server Action fix
- Unexpected token '<', "<!DOCTYPE "... is not valid JSON
- “TypeError: Body is unusable”: body has already been read
- Turnstile vs hCaptcha vs reCAPTCHA: speed and size tested
- Judge.me reviews not showing on Shopify: how to fix it
- Judge.me review carousel not showing: how to fix it
- Yotpo reviews not showing on Shopify? Check the app embed
- Loox reviews not showing on product page: how to fix
- Shopify reviews not showing: what to check first
- How to show reviews on Shopify
- GDPR for website forms: what each type of form needs
- WooCommerce reviews not showing: how to fix it
- Stamped.io reviews not showing on Shopify: how to fix it
- Etsy reviews not showing: why and what to do
- Trustpilot widget not loading: how to fix TrustBox
- Yotpo problems in 2026: what merchants report
- Contact Form 7 “error trying to send your message” fix
- Elementor form “Your submission failed because of an error”
- Framer form not sending email or not working: what to check
- Carrd contact form not working: plans, spam and errors
- Google review link not working: what customers see and why
- tawk.to widget not showing on your website: causes and fixes
- How to add questions and answers to your product page
- “Failed to send a request to the Edge Function”: fixes
- Next.js “Failed to find Server Action”: what it means
- Brevo “unauthorized: Key not found” 401: the fix
- Amazon SES “Email address is not verified”: the fix
- Shopify contact form not working: how to fix it
- Judge.me alternative for WooCommerce after the 2025 shutdown
- Free WooCommerce review plugins compared on the free version
- WooCommerce review reminder emails without a paid plugin
- Add Voice Recording to a Website Form
- Contact Form 7 spam: how to stop it
- WPForms not sending email: how to fix it
- Contact form emails going to spam: how to fix it
- HTML form not submitting: how to fix it
- Contact form not working: how to find the fault
- Webflow form spam: how to stop it
- Website form to Notion: how to set it up
- Website form to WhatsApp: what works and what does not