Hello there,
Having a problem with embedding Miro inside another iframe.
It says “This is a private board”.
I’ve submited the form to get access to boards picker component according to documentation.
Here is the code:
miroBoardsPicker.open({
clientId: clientId,
action: 'access-link',
allowCreateAnonymousBoards: true,
getToken: async () => axios.post('/obtain-jwt').then(r => r.data),
error: e => { console.log('on error', e) },
cancel: () => { console.log('on cancel') },
success: async function (result) {
console.log(result)
window.open(result.accessLink)
},
})
It works well upon opening the access link in the separate window via window.open()
Access Link example: https://miro.com/app/live-embed/uXjVMBMXOW0=/?boardAccessToken=5GDDy0S9quNzU4zH3U4jtsktWiJbpgKV&autoplay=true
However inside iframe some XHR requests falling with 403 error.
I noticed, that in requests which failing with 403 error, there is header absent X-Access-Link for some reason. But this header is present when link has been opening via window.open() call.