Forum Discussion

lbronner's avatar
lbronner
New Member
2 years ago
Solved

Run powerbi embeded report in electron and iframe

Hi 🙂   I'm facing a problem with a powerBi report, on url type : https://app.powerbi.com/reportEmbed?reportId=XXX&autoAuth=true&ctid=YYY   I launch it in electron 29.2.0 in iframe I Have thi...
  • Anonymous's avatar
    Anonymous
    2 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.