-1

I am loading a web page from an IoT device and its url is http i.e., http://ip_address.

Note: It is not loading mixed content. Everything is loaded over http.

When downloading a dynamically created file using the below code

var link = document.createElement("a");
  if (link.download !== undefined) { // feature detection
  // Browsers that support HTML5 download attribute
  var url = URL.createObjectURL(blob);
  link.setAttribute("href", url);
  link.setAttribute("download", exportedFilenmae);
  link.style.visibility = 'hidden';
  document.body.appendChild(link);
  link.click();
  document.body.removeChild(link);

The following error shows up in console.

The file at 'blob:http://localhost/1e86ba66-92a8-4ee5-bf10-4947de6a2ccf' was loaded over an insecure connection. This file should be served over HTTPS.

The code above works and downloads the file but shows the above error in console of Chrome and Edge.

How can I get rid of this error in console? Is it something that can be fixed using an http device?

Thanks in advance.

0 Answers0