Create blob over https

I am trying to move an existing application behind nginx for ssl completion and load balancing between two servers. The app is working fine currently, but when behind ssl I get an error regarding the web worker I am creating from blob.

Edit to clarify Running a node server with ssl also calls this. I am not loading it from an external resource, the page itself builds it through a script that has also been loaded over https.

Mixed Content: The page at https://example.com 'was loaded over HTTPS but requested an insecure worker script' blob: null / 7dc18b31-c49c-48c5-b76f-443a1a9b459f. This request has been blocked; the content must be transferred over HTTPS.

The worker is created on a page loaded via https, here is the creation code.

var blobUrl;
try {
  blobUrl = new Blob([blobCode], {type: 'application/javascript'});
} catch (e) {
  window.BlobBuilder = window.BlobBuilder
    || window.WebKitBlobBuilder
    || window.MozBlobBuilder;
  blobUrl = new BlobBuilder();
  blobUrl.append(blobCode);
  blobUrl = blobUrl.getBlob();
}

var worker = new Worker(URL.createObjectURL(blobUrl));

      

Is there a way to create a web worker from a blob and get it to upload via https?

+3


source to share





All Articles