Skip to main content

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:&#47;&#47;mblazonry&#46;my&#46;salesforce&#46;com/00Tj0000004wkMB" />


What am I missing?

Maybe SAMEORIGIN problem?  Open Dev Tools and check the error.


There it is. SAMEORIGIN. Never seen this before.  Do you know of a way to manage this?
03f255b40ca9d86b43766339f0912c0e60cd8fcc.png


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. 


https://developer.salesforce.com/forums/?id=906F0000000AegMIAS


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.


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.


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.


Reply