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

126
Views
XMLHttpRequest body empty although same origin

I am accessing https://example.com/about/edit (Domain changed for privacy reasons) from my browser. There, I have JavaScript code running that is sending a HTTP request to https://example.com/about/api/id with an identifier for an object on my server.

let xhr = new XMLHttpRequest();
xhr.open("GET", "https://example.com/api/"+id, true)
xhr.send(null)
console.log(xhr.responseText) // <empty string>

The interesting thing is that xhr.responseText is empty, though I can see it in my Firefox network tab and also the request is from the same origin.

Photo from firefox

Help would be very much appreciated!

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