Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

SharePoint Online Content in Dynamics 365 CRM form using IFrame

(0) ShareShare
ReportReport
Posted on by 235

Hello Friends,

Requirement :
Show SharePoint content in Dynamics CRM form using IFrame.

Error response :
Cannot display this content in an iframe
.The content publisher protects the information you enter on
this site by not allowing the content
displayed in a frame.

Tried:
Cross-domain settings in Browser
Trusted sites

Does anyone have a solution to this error?

  • Suggested answer
    Ayaka Iwai Profile Picture
    Ayaka Iwai on at
    RE: SharePoint Online Content in Dynamics 365 CRM form using IFrame

    SharePoint Online or SharePoint Server 2013, when the page is called from the frame, if the URL of the parent window (caller) page is not in the same domain, it will block displaying the page in the frame.

    Please use the AllowFraming control when you create a page that you want to allow access from the frame of another domain page.

    Please use the AllowFraming control only on frames-only pages. Never use it on a master page.

    Title: AllowFraming class

    Address: msdn.microsoft.com/.../microsoft.sharepoint.webpartpages.allowframing(v=office.15).aspx

    Procedure

    1. Open the page in SharePoint Designer.

    2. Add the following if there is no reference to the Microsoft.SharePoint.WebPartPages namespace in the page header.

     <%@ Register tagprefix="WebPartPages" namespace="Microsoft.SharePoint.WebPartPages" assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

    3. Add the AllowFraming control to your page.

     <WebPartPages:AllowFraming runat="server"/>

    4. Save it by overwritting.

    I recommend you to create a support ticket for further investigation if the issue is not resolved.

    reference

    URL:docs.microsoft.com/.../sharepoint-frameiframe

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,436 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans