Open khlilturki97 opened 2 years ago
Any update on this issue? I am having the same issue, mainly with Chrome/iOS & Android.
Any update? Same issue with these settings on on edge
Same error here in Kiwi browser (which is Chrome for Android based). Kiwi actually has developer tools available in the app and the print does not work and results in the same DOMException as shown above:
Uncaught DOMException: Blocked a frame with origin "< >" from accessing a cross-origin frame.
at performPrint (< >/print-js.js)
at iframeElement.onload (< >/print-js.js)
Probably related to #600 as well. I have actually tried to implement the iframe myself before using this library and got the same error. The issue seems to be caused by blob:https://url
is treated as a different origin than http://url
, since the protocol is different. According to some SO pages, postMessage combined with an eventlistener should be used, however, I could not get a working postMessage + eventListener registered without triggering the cross-origin Exception.
When i try to print from printjs.crabbly.com from a mobile device, iget the following error
it works from a laptop