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

81
Vistas
blob file get unauthorized access error when downloaded from client pc
    xhttp.open("GET", "https://api.example.com" + file, true);
    xhttp.setRequestHeader("content-type", "application/zip");
    xhttp.responseType = "blob";
    xhttp.onload = function (event) {
        var blob = xhttp.response;
        //checking file size
        var blobSize = xhttp.response.size;
         (xhttp.response.size > 0) {
            var link = document.createElement('a');
            link.href = window.URL.createObjectURL(blob);
            link.dataset.downloadurl = ['text/plain', link.download, link.href].join(':');
            link.download = fileName;
            link.click();
        }

I have deployed it on a server but when I try to access that from the server, the zip files download without any problem. When I try to download from client-server, the file gets corrupted.

The file can be only downloaded with the server's approved IP address. I assume when I try to download the file on the client side, the file doesn't pass through the server IP address.

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