turnstile icon indicating copy to clipboard operation
turnstile copied to clipboard

Getting 401 on Request for the Private Access Token challenge

Open cadamsdev opened this issue 10 months ago â€ĸ 1 comments

🐛 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)

Image

I am setting the sitekey and secret key correctly.

đŸ› ī¸ To reproduce

  1. Clone the nuxt-modules/turnstile repo
  2. Get the sitekey and secret key from cloudflare
  3. Inside the playground
  4. Run the playground
  5. 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.

cadamsdev avatar Apr 16 '25 02:04 cadamsdev

I also encountered this problem.

I thought it was a cloudflare issue.

vildcat avatar Aug 18 '25 04:08 vildcat