Forum Discussion
Anonymous
7 years agoNot applicable
Secure Embedded Report On Website Got Cross Domain Exception
Hi guys I have a issue to embed a report to my website. I use File --> Embed (Securely embed this report in a website or portal) option in the dropdown menu to get the embed link, then integrate...
Anonymous
7 years agoNot applicable
Hi,
I get this error too, specifically when using Chrome, but not when using Firefox or Edge. If I do a refresh after the sign in, it all works without error, and the report displays just fine.
It is hard to understand the error because both the script that is executing and the iframe appear to have origin "https://app.powerbi.com".
So is it maybe a bug in Chrome? How could I prove that?
My iframe tag looks like this:
<iframe title="Report" style={{display: "block", background: "#000", border: "none", height: "calc(100vh - 30px)", width: "100%"}} src="OUR EMBEDDED REPORT URL GOES HERE" />
and we are using react, so that tag is output during a react render.
Thanks for any suggestions for how to debug this further or work around it.
Martin
Error message in dev tools console:
ERROR DOMException: Blocked a frame with origin "https://app.powerbi.com" from accessing a cross-origin frame.
at t.requestLocalizedStrings (https://app.powerbi.com/13.0.8730.154/scripts/reportEmbed.min.js:1:649294)
at t.load (https://app.powerbi.com/13.0.8730.154/scripts/reportEmbed.min.js:1:648904)
at new t (https://app.powerbi.com/13.0.8730.154/scripts/reportEmbed.min.js:1:648455)
at https://app.powerbi.com/13.0.8730.154/scripts/reportEmbed.min.js:1:69273
at Zr (https://app.powerbi.com/13.0.8730.154/scripts/reportEmbed.min.js:1:69500)
at Kr (https://app.powerbi.com/13.0.8730.154/scripts/reportEmbed.min.js:1:68640)
at https://app.powerbi.com/13.0.8730.154/scripts/reportEmbed.min.js:1:69376
at Zr (https://app.powerbi.com/13.0.8730.154/scripts/reportEmbed.min.js:1:69500)
at Kr (https://app.powerbi.com/13.0.8730.154/scripts/reportEmbed.min.js:1:68640)
at https://app.powerbi.com/13.0.8730.154/scripts/reportEmbed.min.js:1:69311
at t.requestLocalizedStrings (https://app.powerbi.com/13.0.8730.154/scripts/reportEmbed.min.js:1:649294)
at t.load (https://app.powerbi.com/13.0.8730.154/scripts/reportEmbed.min.js:1:648904)
at new t (https://app.powerbi.com/13.0.8730.154/scripts/reportEmbed.min.js:1:648455)
at https://app.powerbi.com/13.0.8730.154/scripts/reportEmbed.min.js:1:69273
at Zr (https://app.powerbi.com/13.0.8730.154/scripts/reportEmbed.min.js:1:69500)
at Kr (https://app.powerbi.com/13.0.8730.154/scripts/reportEmbed.min.js:1:68640)
at https://app.powerbi.com/13.0.8730.154/scripts/reportEmbed.min.js:1:69376
at Zr (https://app.powerbi.com/13.0.8730.154/scripts/reportEmbed.min.js:1:69500)
at Kr (https://app.powerbi.com/13.0.8730.154/scripts/reportEmbed.min.js:1:68640)
at https://app.powerbi.com/13.0.8730.154/scripts/reportEmbed.min.js:1:69311