Forum Discussion
mayank2109
4 years agoNew Member
Content Security Policy error , when embedding the dashboard using Angular
Hi , I am getting below error , when i am trying to enbed the dashboard . Refused to frame 'https://app.powerbi.com/' because an ancestor violates the following Content Security Policy directive: ...
Erik_TPC
3 years agoNew Member
What solved it for me was not to take the URL from the report, but instead select the option: File --> Embed report --> Website or portal --> copy the top URL.
This changes the url from something like this:
https://app.powerbi.com/groups/<Group ID>/reports/<report ID>/ReportSection<Section ID>?experience=power-bi
To something like this:
https://app.powerbi.com/reportEmbed?reportId=<reportID>&autoAuth=true&ctid=<some other ID>
Hope this helps,
Erik van Hurck
Projectum | TPC