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

206
Views
En la solicitud de React Js Axios que recibe un error de CROS

Usé Axios para API, aquí está mi código. Recibo un error CROS.

 axios({ method: 'GET', headers : { 'Content-Type': 'application/json', 'Access-Control-Allow-Origin' : '*', 'mode': 'cors', 'Authorization':'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1N....' }, url: baseURL, }).then(function (response) { console.log(response); });

ingrese la descripción de la imagen aquí

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Deberá habilitar CORS desde su servicio back-end. De la imagen, está claro que su front-end se ejecuta en localhost en el puerto 3000, mientras que su back-end o servicio api se ejecuta en el puerto 8000 en localhost. Por lo tanto, habilite CORS desde su back-end o servicio api.

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!