Forum Discussion
custom visual, Iframe content not showing
- 8 years ago
It seems Power BI Desktop blocks an iframe inside another ifframe due to using sandboxed iframe.
To bypass this issue we would recommend not to use an additional iframe.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
I am observing the following in a custom visualization packaged as PBIVIZ:
1) My custom component includes a single Iframe.
2) The PBIVIZ installs and renders partially in PowerBI desktop. The IFrame does not load (fiddler can't see a URI request at all).
3) When published to PBI server, the same component renders fully, including the IFrame correctly.
A few questions:
1) Is this true? By design?
2) Is there a work-around such as embedding the IFrame in SVG or elsewhere?
Thank you!
Hello,
1. It is not recommended to use iframes inside your visual because visual is wrapped into iframe with sandbox itself and inner iframes will not work correctly.
2. There aren't workarounds.
In fact, it is strange why your visual works correctly in Service. Could you please send us to [email protected] your code or link to a repo for analysis?
Kind Regards,
Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
[email protected]