HTML - Embed Iframe

Avatar

Avatar

sathya_prakasha

Avatar

sathya_prakasha

sathya_prakasha

22-01-2021

The below script is not working on embed component. 

 

<iframe src="https://www.w3schools.com" title="W3Schools Free Online Web Tutorials">
</iframe>

 

AEM 6.5.5.0
View Entire Topic

Avatar

Avatar

KiranVedantam1992

Avatar

KiranVedantam1992

KiranVedantam1992

25-01-2021

Hi @sathya_prakasha,

 

You cant show many websites in an iFrame. Reason: An "X-Frame-Options: SAMEORIGIN" response header is set. which prevents the browser from displaying iFrames that are not hosted on the same domain [like parent page]. Its a security feature to prevent click-jacking.

 

C1.PNG

 

Hope this helps.

 

Thanks,

Kiran Vedantam.