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

470
Views
Getting error net::ERR_NAME_NOT_RESOLVED while axios get/post request in my react project

I am getting error

net::ERR_NAME_NOT_RESOLVED

in browser when my react app hit GET/POST request using axios. Do I need to do any additional things with axios request?

Url is able to access within pods (Kubernetes) but while accessing outside through app it is giving error

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

0

I would like to share the solution here,

If the APIs are not exposed to outside world and only want to access through web app simple set the base url with proxy in package.json like as below

"proxy":"https://yourbackendapi";

And deploy the application in the same environment where backend is deployed.

it will also resolved CORS related issue if any.

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!