Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

196
Views
¿Hay alguna manera de arreglar Recaptcha para que ReactJS no funcione?

Estoy tratando de agregar captcha a mi aplicación de reacción y la interfaz funciona bien como se esperaba. pero cuando el backend llama a la API para verificar la respuesta de captcha ( api ), obtengo la siguiente respuesta { success: false, 'error-codes': [ 'missing-input-secret' ] } . Ahora, cuando registro la solicitud para ver qué datos se envían. me sale esta imagen como puede ver, el secreto y la respuesta se envían y mis encabezados son correctos, pero por alguna razón recibo un error.

aquí está mi código:

 const captchaRequest = await axios.post('https://www.google.com/recaptcha/api/siteverify', { secret: config.captchaSecretKey, response: captcha }, { headers: { 'Content-Type': 'application/json', } }); const captchaResponse = captchaRequest.data; if (!captchaResponse.success) { return res.status(401).json({ message: 'captcha failed', success: false, }); }

Si alguien pudiera decirme qué estoy haciendo mal, hágamelo saber.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!