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
PappuPappu 

Embed Iframe in Visualforce

Hi Guys,

I'm trying to embed an external website in Salesforce via visualforce page.

Problem is the external site sets X-Frame-Options header to explicitly stop embedding the site in iframe. Also, I cant disable the clickjack property in org.

Any alternative way I can get the external site to Salesforce?

 
Dinesh GopalakrishnanDinesh Gopalakrishnan
Hi Pappu,

Here's the workaround to iframes
If you're encountering this problem, instead of using a web tab, a custom link can deliver the URL with the behavior set to:
  • Display in new window.
  • ​Display in existing window without sidebar or header.


Kindly check the below Link you can find a Workaround to Iframes.

https://help.salesforce.com/articleView?id=IFRAME-or-Web-Tab-Content-Displays-Blank-Page-1327107637323&type=1

Kindly Mark this as a Best Answer if you Find this Useful!

Thanks
DineshKumar Gopalakrishnan​


 
Shruti SShruti S
Sorry to say this is impossible. As long as the remote site blocks from loading itself in IFRAMEs, there is not much that we can do.

Sorry I wish I had a better answer for you.