Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

164
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda