PowerBI has a good API, but i probably making a mistake with the flow to retrieve data from it.
What we need to do:
What we got so far:
The problems we're facing:
Refused to frame 'https://app.powerbi.com/' because it violates the following Content Security Policy directive: "child-src 'none'". Note that 'frame-src' was not explicitly set, so 'child-src' is used as a fallback.Example code (not the real code. just a draft):
var apps = [];
var APPLICATION_ID = "NOT INFORMED HERE";
axios.get("POWERBI URL").then(function(result) {
result["values"].forEach((item) => {
apps.push({id:item.id, name:item.name, link:`https://app.powerbi.com/Redirect?action=OpenApp&appId=${item.id}&ctid=${APPLICATION_ID}`})
});
});
Any idea of how can we get this done considering security and front-end only approach?