Friday, July 31, 2015

"This content cannot be displayed in a frame" CRM 2015 online SharePoint 2013 online issue

Recently i got this error message when i tried to show SharePoint 2013 online page in iframe in CRM 2015 online. I tried different options like adding both the sites to trusted zone and enabled mixed mode content in internet explorer but it did not work.

To solve this issue i added the below tag in master page of the site collection's root site and it worked like a charm.

I added this tag after all the <%@ Register tags

<WebPartPages:AllowFraming runat="server"/>

This allows the site pages to be shown in iframe outside the SharePoint.

Happy Coding !!!