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

80
Views
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
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!