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