function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Medhanie Habte 37Medhanie Habte 37 

Enabling Clickjack protections causing Visualforce pages to not appear

Greetings, I've got a Gridbuddy visualforce page embedded on accounts, but when I enable the Clickjacking protecting on Visualforce pages, the accounts page displays an error and the entire account record does not. Are there any steps I can take to allow my VF page to appear and work when clickjacking is enabled.
User-added image

My code is as below.
<apex:page standardController="Account" sidebar="false" showHeader="false">
    <GBLite:EmbedComponent baseGridUrl="{!$Page.GBLite__Grid}" />

    <iframe id="gridFrame" scrolling="auto" height="480" width="100%" frameborder="0" src="{!gridPage}gname=Moves Managed Tasks&id={!Account.Id}&sh=0&ssb=0&sbb=1&sfname=default"></iframe>
</apex:page>

 
Best Answer chosen by Medhanie Habte 37
Salesforce DeveloperSalesforce Developer
Set applyHtmlTag="false" as well in the apex:page tag as below :
<apex:page standardController="Account" sidebar="false" showHeader="false" applyHtmlTag="false">
More info: https://help.salesforce.com/articleView?id=000230608&type=1&language=en_US

All Answers

Salesforce DeveloperSalesforce Developer
Set applyHtmlTag="false" as well in the apex:page tag as below :
<apex:page standardController="Account" sidebar="false" showHeader="false" applyHtmlTag="false">
More info: https://help.salesforce.com/articleView?id=000230608&type=1&language=en_US
This was selected as the best answer
Medhanie Habte 37Medhanie Habte 37
It's a great idea, however this does not allow display of the iframe. But eliminates the URL not found error! I disabled the Clickjack protections for now.