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

  • Charan Tej

    Member
    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.

    sample

  • Satyakam

    Member
    January 18, 2018 at 11:23 am

    Hi Charan,

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

    Thanks

  • Avnish Yadav

    Member
    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=”https://www.salesforce.com” scrolling=”true” id=”theIframe”/>
        </apex:pageBlock>
    </apex:page>

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos