Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

212
Vistas
Getting "No 'Access-Control-Allow-Origin' header is present on the requested resource" even after defining header

I am attempting to verify recaptcha v3 using js and axios and I kept getting a CORS error. After looking up the 'Access-Controll-Allow-Origin' error, I read that you simply had to include either '*' or the site itself in the header.

const submitData = (token: any) => {
  axios
    .post(`https://www.google.com/recaptcha/api/siteverify`, {
      headers: {
        "Access-Control-Allow-Origin": "*",
      },
      params: {
        response: token,
        secret: SECRET,
      },
    })
    .then((res) => {
      setResponse(res.data);
    });
};

Above is my attempt to add the wildcard header. I keep receiving the "No 'Access-Control-Allow-Origin' header is present' error.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda