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

163
Views
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 answers
Answer question

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 Report

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 Report
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!