iframe to standard salesforce page

Pat Vachon
Pat Vachon 💎💎💎
edited June 25, 2020 in Questions
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

  • Irvin Waldman
    edited June 25, 2020
    Maybe SAMEORIGIN problem?  Open Dev Tools and check the error.
  • Pat Vachon
    Pat Vachon 💎💎💎
    edited January 5, 2016
    There it is. SAMEORIGIN. Never seen this before.  Do you know of a way to manage this?
    image
  • Rob Hatch
    Rob Hatch 🛠️ 
    edited September 1, 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. 
  • Irvin Waldman
    edited May 8, 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 McElrath
    edited December 21, 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.
  • Shmuel Kamensky
    edited November 2, 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.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!