Activity Forums Salesforce® Discussions How to embed iframe in Salesforce Visualforce page?

  • Charan Tej

    January 18, 2018 at 10:39 am

    I am able to diplay external website through Visualforce page.

    I think issue is only with few websites where X-frame options are set to Deny.


  • Satyakam

    January 18, 2018 at 11:23 am

    Hi Charan,

    Is there any other option to show all websites within our visualforce page.


  • Avnish Yadav

    September 30, 2018 at 12:15 am

    Please use https instead of HTTP in your code.

    Find the sample code below.

    <apex:page showHeader=”false”>
        <apex:pageBlock >
            <apex:iframe src=”” scrolling=”true” id=”theIframe”/>

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos