Forum Discussion

john john's avatar
john john
Iron Contributor
Mar 08, 2019

Embed a sharepoint online classic page inside our sharepoint on-premises page

we have 2 sharepoint farms which are based on the same Active Directory. one is on-premises 2013 while the other is sharepoint online. now i am trying to embed a sharepoint online classic page inside an on-premises page, so i did these steps:-

1- inside our on-premises page i added an embed web part , then i added this iframe to reference our sharepoint online page:-

<iframe width="100%" height="280" src="https://***.sharepoint.com/Pages/images4.aspx?IsDlg=1"></iframe>

2- but users will be getting these errors, on IE-11, users will get this error as follow:-

To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame. What you can try Open this content in a new window

enter image description here

while on FireFox nothing will be shown inside the page, but when i open the browser console i found this error:-

Load denied by X-Frame-Options: https://***.sharepoint.com/Pages/images4.aspx?IsDlg=1 does not permit cross-origin framing.

so is there anything i can do regarding this?

2 Replies

  • Rachel_Davis's avatar
    Rachel_Davis
    Iron Contributor

    I would use either a page viewer web part or simply provide a link to the other page that opens in a new window. Then people can see both pages side-by-side.

    • john john's avatar
      john john
      Iron Contributor

      Rachel_Davis wrote:

      I would use either a page viewer web part or simply provide a link to the other page that opens in a new window. Then people can see both pages side-by-side.


      i tried using the Page viewer web page but i got the same error. as i think page viewer will use iframes behind the scenes (i am not sure about this)

Resources