Forum Discussion
Run powerbi embeded report in electron and iframe
- Anonymous2 years ago
Hi lbronner ,
Starting with Electron v12, context isolation is enabled by default for security reasons. This means that the main world and the renderer world are isolated from each other. Since you're using Electron v29.2.0, ensure that context isolation is indeed enabled () and use a preload script to safely expose any necessary functionality to the renderer process.
Currently in Electron 30.0.0 there is Behavior Changed: cross-origin iframes now use Permission Policy to access features.
More details on context isolation and preload scripts can be found here:
Context Isolation | Electron (electronjs.org)
Electron 29.0.0 | Electron (electronjs.org)
Google Summer of Code 2024 | Electron (electronjs.org)
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi lbronner ,
Starting with Electron v12, context isolation is enabled by default for security reasons. This means that the main world and the renderer world are isolated from each other. Since you're using Electron v29.2.0, ensure that context isolation is indeed enabled () and use a preload script to safely expose any necessary functionality to the renderer process.
Currently in Electron 30.0.0 there is Behavior Changed: cross-origin iframes now use Permission Policy to access features.
More details on context isolation and preload scripts can be found here:
Context Isolation | Electron (electronjs.org)
Electron 29.0.0 | Electron (electronjs.org)
Google Summer of Code 2024 | Electron (electronjs.org)
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- lbronner2 years agoNew Member
Using electron 30 resolved the problem