iframe to standard salesforce page

Pat VachonPat Vachon 💎💎💎
edited June 25 in Problems
I can't for the life of me get a standard salesforce page to show up in a template via iframe. ie. a task standard page in a template. Even if copy paste the url of the task into the src like so.
<iframe src="https://mblazonry.my.salesforce.com/00Tj0000004wkMB" />
What am I missing?

Comments

  • edited June 25
    Maybe SAMEORIGIN problem?  Open Dev Tools and check the error.
  • Pat VachonPat Vachon 💎💎💎
    edited January 2016
    There it is. SAMEORIGIN. Never seen this before.  Do you know of a way to manage this?
    image
  • Rob HatchRob Hatch 🛠️ 
    edited September 2016
    FWIW.  We have never been able to get standard layouts to appear in Skuid pages.  I can't say we've done everything possible.  But we've never been successful. 

    Sorry. 
  • edited May 2019
    More information:

    Salesforce enabled Clickjack protection on setup and non-setup pages by default in Spring '14.  To Salesforce, iframes are not secure.  You may try contacting Salesforce support and see if they can disable it for you.

    You can see Clickjack Protection settings at Setup > Administration Setup > Security Controls > Session Settings.
  • Zach McElrathZach McElrath Principal Software Engineer Chattanooga, TN 💎💎💎
    edited December 2016
    Irwin nailed it! Salesforce's Clickjack Protection prevents any standard Salesforce page from being used in an iFrame, and I believe that as of a more recent release they made it impossible to disable this from the Session Settings panel without contacting Salesforce support directly.
  • edited November 2017
    You could accomplish this by creating a visualforce of the standard page layout like so:
    <apex:page standardController="Task" sidebar="false" showHeader="false">   <apex:detail relatedList="false" title="false" inlineEdit="true"/> 
    </apex:page>
    and then putting the visualforce in an iframe. By default, the page will take the task id from an "id" url parameter. You might need to mess around a bit with the visualforce page though. For instance, some of the buttons don't work as expected out of the box.
Sign In or Register to comment.