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

168
Vistas
react js, it does not return the token code

react js, it does not return the token code. In the "postman" it works okay, a method "POST" and in the body I pass in "raw" But when I do it in react js it doesn't return that, what am I doing wrong? Thank you

export const apiCallToken = async () => {
  const res = await fetch(apiLogin, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    body: JSON.stringify({

    }),
  })


  return aa
about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

could you post your React component code? Without it it's hard to understand what's the issue there. The apiCallToken function looks fine.

about 4 years ago · Juan Pablo Isaza Denunciar

0

Do you see any CORS issues? Maybe enable cors on the backend side. If you don't have access to the backend side and think the backend supports CORS, try a proxy on the frontend.

See this link to set up a proxy in react.

about 4 years ago · Juan Pablo Isaza Denunciar
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