Turnstile returns 400 bad request

I implemented several turnstile captchas on several URLs but for one it is return 400 Bad Request. There is no more information provided. Response is “Invalid request”. How can I find out more?`

@cloudflare: cf-ray=752d28694fe1929f-FRA

The only source code I added is:

My source is like:

<form>
  <div class="cf-turnstile" data-action="Login Job" data-sitekey="mysitekey" data-theme="light"></div>
</form>
<script async="async" defer="defer" src="https://challenges.cloudflare.com/turnstile/v0/api.js"></script>

Okay. Finally I found the solution:

You cannot use whitespaces for data-action attribute value. I used “data-action=‘Login Job’” and by replacing it with “data-action=‘LoginJob’” ist works!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.