Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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);
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
2 | |
2 | |
1 | |
1 |