Hello! Can I use Miro Web SDK if I embed my boards via iframe to my application? (I connected board as here Live Embed with BoardsPicker for registered users (miro.com))
I want to do that:
const item = await miro.board.get({ id: id })
await miro.board.viewport.zoomTo(item)
but I don’t understand how to get miro object from iframe in my application.
I tried to do that:
document.getElementsByClassName('miro-embedded-board')b0].contentWindow.miro, but I get error: Uncaught DOMException: Failed to read a named property 'miro' from 'Window': Blocked a frame with origin “https://my-link” from accessing a cross-origin frame.
at HTMLDocument.<anonymous>
Thanks.