0

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 IE11, 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?

  • Rather than trying to embed in your own iFrame, maybe try using the Page Viewer web part under "Media and Content". See if that works. – KGlasier Mar 8 at 20:22
  • @KGlasier this did not work either, and i got the exact same error as when i use iframe directly. I think the problem is with sharepoint online that it does not allow embedding its pages inside external sites.. and not a problem inside the on-premises.. – SharePoint TestDev Mar 8 at 20:44
  • The online tenant is a trusted site, right? – Kasper Bo Larsen Mar 10 at 7:50
  • @KasperBoLarsen do you mean trusted site inside the IE browser? – SharePoint TestDev Mar 10 at 16:37
  • @KasperBoLarsen i added the sharepoint online site as a trusted site on IE & Firefox but still i am getting the same error... – SharePoint TestDev Mar 10 at 19:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.