turnstile
turnstile copied to clipboard
Getting 401 on Request for the Private Access Token challenge
đ The bug
Hello,
I followed the installation steps however... When I use this module, I'm getting this error in the console.
The next request for the Private Access Token challenge may return a 401 and show a warning in console.
v1?ray=931018b269d73b44&lang=en:1
GET https://challenges.cloudflare.com/cdn-cgi/challenge-platform/h/b/pat/931018b269d73b44/1744768904419/2a7e2852dcec599e51d7c8b2b7e0eda1a3d118e2e1c33811610bf90118bf35dd/dGCpiTjf6O1bFeC 401 (Unauthorized)
I am setting the sitekey and secret key correctly.
đ ī¸ To reproduce
- Clone the nuxt-modules/turnstile repo
- Get the sitekey and secret key from cloudflare
- Inside the playground
- Change the secret key
- Change the siteKey
- Run the playground
- In the playground click the "Load Turnstiles" button (you should see the error above)
đ Expected behaviour
Should not throw errors in the console
âšī¸ Additional context
I get this error for both local and prod environemnts.
I also encountered this problem.
I thought it was a cloudflare issue.