Skip to content

Getting 401 on Request for the Private Access Token challenge #421

@cadamsdev

Description

@cadamsdev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions