Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

128
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda