data:text/html is not possible as src?
hanbar opened this issue · comments
Hana Kubincová commented
Failed to execute 'postMessage' on 'Window': Invalid target origin 'data:text/html,' in a call to 'postMessage'.
Danny Heard commented
I am also getting this issue when trying to render a base64 pdf
David J. Bradshaw commented
You need to use ViewerJS in the iframe to display the PDF, as you can not attach JS directly to a PDF.