0

I have the issue being described in this answer here: https://stackoverflow.com/a/46165963/456850

Where I am loading a website through a blob, and assigned the blob to an iframe. For example:

let url = 'http://www.website.com';

let blob = await fetch(url).then(r => r.blob());
    
    let ifrm = document.createElement('iframe');
    
    var data_url = URL.createObjectURL(blob);
    ifrm.setAttribute("src", data_url);
    
    body.appendChild(ifrm);

Except any script tag, ie <script type="text/javascript" src="http://www.example.com/file.js"><script>, fails to load because as its described "iFrame with Blob is not auto redirect protocol".

Does anyone know how to solve this issue?

Devin Dixon
  • 10,229
  • 21
  • 78
  • 150

0 Answers0