Contents
A Page from SharePoint 2013 (on premise) can be displayed in an iframe from a Page hosted on another domain, if the following control is added to the head of the master page: However if this control is not added to the master-page, then we also get the above mentioned error.
Can you add allowframing in SharePoint Master Page?
You can add the AllowFraming in SharePoint master page, if you want to view all pages, or a specific page. More information about displaying a SharePoint page in iframe, you can refer to: https://sharepointking.wordpress.com/2013/07/24/allow-sharepoint-2013-site-to-load-in-iframe/
Can you add an iFrame to an Office 365 website?
Even it’s Office 365, you can still add the domain to the HTML Field Security and allow user to insert iframes from any external domain into pages on this site.
How to use sharepoint.aspx page instead of REST API?
If you have feedback for TechNet Support, contact [email protected]. Please use a SharePoint .aspx page into the src instead of SharePoint REST API. For example, you can create a test wiki page named Test in your SharePoint site, then use it:
How to embed an external page without an iframe?
If the other webpage doesn’t contain any form or text, for example you can use the CURL method to pickup the exact content and after then showing on your page. YOu can do it without using an iframe. But, if the page what you want to embed contains for example a form it will not work correctly , because the form handling is on that site.
How to display SharePoint Online in different domain?
This is mainly for security reasons to avoid from web attacks like Clickjacking and XSS. If you want to display the content of the sharepoint online into different domain, than try to use provider hosted app in windows azure or develop a Napa sharepoint hosted app which can make cross domain requests in REST or ajax
On SharePoint Online it works without problems, but if I deploy the app on a SharePoint 2013 On-Premise system I get this error when I open the modal dialog: But it does not work.