I do not want to display this via SharePoint or any I am already generating dynamic IFRAME via JavaScript with appending the URL in SRC of IFRAME. I have provided LoadIframe() function in my question, where I am generating IFRAME dynamically with SRC url appending to it.
<iframe style="width:1500px;height:800px;" class="embed-responsive-item" src="https://www.jmcjammu.org/" frameborder="0" allowfullscreen="true"></iframe>
As you can see above then URL gets appending dynamically and it opens in the IFRAME perfectly. But when i am appending the URL of PowerBI report dynamically,
<iframe class="embed-responsive-item" src="https://app.powerbi.com/groups/837d337a-cafe-4b81-aaca-dd92f2aefa4d/reports/a9b4de2c-d7e3-4908-9b48-9badccea5f9f/ReportSection" frameborder="0" allowfullscreen="true"></iframe>
then while it's get load in IFRAME giving me a message as
app.powerbi.com refused to connect.
my question is when a URL of simple website opens in IFRAME which is dynamically generated in .aspx page, then why PowerBI url not opening in IFRAME which is also generated dynamically in same .aspx page?