Forum Discussion
tikluganguly
9 years agoNew Member
PowerBI Embedded fails to load report (403) when the web app client runs from another server
Hi Guys, I have a web app front end running via "Cordova run browser" and the backend is served via asp.net MVC WebAPI. The frontend running on port 8000 and the asp.net MVC backend is...
tikluganguly
9 years agoNew Member
Hi Eric,
Thanks for the confirmation. I was thinking that the PowerBI token is tied to the originating site. Actually, as I told you the front end is running via Cordova. And we have a
<meta http-equiv="Content-Security-Policy" tag. my assumption is this tag is blocking the page. Any idea how I can make sure that CSP allows all the required sites in the app?
Regards
Tiklu
tikluganguly
9 years agoNew Member
Hi Eric_Zhang,
I used your code with my reports embed url and token and it worked. so I am kind of sure that the issue is definitely with my CSP tag. My tag content is as follows
<meta http-equiv="Content-Security-Policy" content="script-src http://ecn.dev.virtualearth.net/ http://dev.virtualearth.net/ http://www.bing.com/ https://t0.ssl.ak.dynamic.tiles.virtualearth.net/ https://t1.ssl.ak.dynamic.tiles.virtualearth.net/ https://t2.ssl.ak.dynamic.tiles.virtualearth.net/ https://t3.ssl.ak.dynamic.tiles.virtualearth.net/ https://*.analysis.windows.net/ http://*.analysis.windows.net/ 'self' 'unsafe-inline' 'unsafe-eval';child-src https://*.analysis.windows.net/ http://*.analysis.windows.net/ https://www.bing.com/ https://embedded.powerbi.com/ https://login.microsoftonline.com/ 'self'; media-src *"
/>
Can you please let me know what exactly should I add to make sure that my app does not block the url of powerbi.
Regards
Tiklu