SharePoint Page within Salesforce using IFrame

Recently I got a request to display a plain SharePoint ASPX page stored in SPOL publishing site within Salesforce. When I tried this I came across an error “This content cannot be displayed in a frame”. The reason for this issue is SharePoint prevents cross-domain IFRAMING of pages as a security measure to prevent clickjacking.

Tried to follow the below approach but no luck

http://crmbook.powerobjects.com/system-administration/sharepoint-document-management/beyond-basic-integration/displaying-an-office-365-sharepoint-page-in-iframe/

Since I was framing the ASPX page outside SharePoint I have to include additional two lines of code (refer the first two lines in the below image) on the ASPX page to enable IFRAMING. This solution worked for me. Please feel free to share if you have any other better idea.

AllowIframe

References:

https://msdn.microsoft.com/library/office/fp179925.aspx

https://blogs.msdn.microsoft.com/officeapps/2012/12/12/iframing-sharepoint-hosted-pages-in-apps

 

Advertisements

About Joseph Velliah
As a SharePoint Developer my professional interests tend to be technical and SharePoint focused. I run a blog at "SP RIDER" where you can expect to read HOW TOs and scenarios that I run into during my day to day job. I hope my posts will give back a little to the community that is helped me.

Comments are closed.

%d bloggers like this: