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: ...
DeadHeadinBham
1 year agoNew Member
I was facing this error too, but the fix turned out to be a simple thing... I was using the wrong iFrame name. I copied my JS code from a playground proof-of-concept environment, but I used a different name for the iFrame control in my dev environment. I updated the iFrame control name and it worked.
My point is to double check the iFrame control name, the JS function name, the report id, etc. The little things get me sometime.