DOMException: Blocked a frame with origin
I got a problem with printing with the first few buttons on https://printjs.crabbly.com/ :
Console error:
Uncaught DOMException: Blocked a frame with origin "https://printjs.crabbly.com" from accessing a cross-origin frame.
at u (https://printjs.crabbly.com/print.js?v1.5.0:1:4095)
at HTMLIFrameElement.n.onload (https://printjs.crabbly.com/print.js?v1.5.0:1:5017)
I think it has to do with the
Browser details: http://supportdetails.net/50FRHNM4
I've created a temporary workaround:
printJS({printable: printUrl, type: 'pdf', onError: (e) => {
let w = window.open(printUrl);
w.window.print();
w.document.close();
}});
Maybe also an option as fallback for this library? You will lose some functionality though.
Same problem for me
I'm having the same problem as well. Also tried to download the examples on the website through my phone and got the same errors.
Same problem for me
Is there any updates on this issue ? Getting exactly same issue. https://codesandbox.io/s/print-i1zx2?file=/src/index.js