sharepoint page viewer this content cannot be displayed in a frame
Error: "This content cannot be displayed in a frame"
Solution:
Open the .aspx page where you are adding iframe using SharePoint designer.
Add below tag in the source page.
<WebPartPages:AllowFraming runat="server" />
Source page mean: The page which you are using in iFrame.
Not the page where iFrame is added.
Error: "This content cannot be displayed in a frame"
Solution:
Open the .aspx page where you are adding iframe using SharePoint designer.
Add below tag in the source page.
<WebPartPages:AllowFraming runat="server" />
Source page mean: The page which you are using in iFrame.
Not the page where iFrame is added.