marcveens / react-drawio

React component for integrating the Diagrams (draw.io) embed iframe
MIT License
43 stars 8 forks source link

Uncaught DOMException: Failed to read a named property 'addEventListener' from 'Window' #18

Closed AngusParsonson closed 6 months ago

AngusParsonson commented 6 months ago

Hi,

I'm getting this error when trying to use react-drawio in an actual application.

Uncaught DOMException: Failed to read a named property 'addEventListener' from 'Window': Blocked a frame with origin "https://my-application-domain" from accessing a cross-origin frame.

Any idea how this can be fixed? Is there somewhere that is using trying to add a direct listener as opposed to postMessage?

Thanks.