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
Jamie CohanJamie Cohan 

Is there an alternative in Lightning to using Iframes? <apex:iframe src="{!FrameLink}" />

Hi Team Lightning,

Is there an alternative to <iframes> in lightning?   Our application has a menu items on the side bar and when the user clicks on the link,  a resulting page is produced in an Iframe .

User-added image
Jamie CohanJamie Cohan
When we switched to Lightning the console in the picture above is blank i.e. the page in the <iframe > is blank in 'Chrome' and in Microsoft Edge the console says "This content can't be shown in frame"...

In the developer console in the chrome browser there is the following error: Refused to display '' in a frame because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self'".

How do fix this iframe issue.  It works in Salesforce classic but not Lightning.

User-added image

or on Microsot Edge we User-added imageget: