Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I am getting belwo error
Blocked a frame with origin "http://localhost:6790" from accessing a frame with origin "https://embedded.powerbi.com". The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "https". Protocols must match.
My code:
Snippet
var iframe = document.createElement("iframe"); iframe.style.display = "none"; iframe.src = data.Report.EmbedUrl.replace('https:',''); iframe.onload = (function () { iframe.style.display = "block"; var m = { action: "loadReport", accessToken: data.AccessToken }; message = JSON.stringify(m); iframe.contentWindow.document.postMessage(message, "*"); alert("loaded"); }); document.getElementById("reportframe").appendChild(iframe);
User | Count |
---|---|
5 | |
4 | |
4 | |
2 | |
2 |
User | Count |
---|---|
8 | |
4 | |
4 | |
4 | |
3 |