function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Flint LockwoodFlint Lockwood 

iframe Salesforce Lightning

I have an iframe embedded within a Lightning page. Whenever the page loads, instead of loading the iframe, the page is redirected to the iframe URL instead. Does anyone know what's happening here?
sfdcMonkey.comsfdcMonkey.com
hi Flint Lockwood  
can you please share you component code onces or same sample code 
thanks 
Flint LockwoodFlint Lockwood
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId" access="global" >

<div style="overflow:hidden;">
        <iframe id="reportFrame" src="https://mytestdev.lightning.force.com/" height="800px" width="100%" scrolling="yes" style="position:relative;"/>
    </div>

</aura:component>

 
sfdcMonkey.comsfdcMonkey.com
above code is working fine in my dev or.
User-added image 
the URL is showing within the iframe 
Flint LockwoodFlint Lockwood
Yes, it works fine in sandbox or developer accounts. However, once I deploy into Production, the iframe navigates the entire page.