Unable to display SharePoint pages from a different domain in iFrame
Original KB number: 4531668
Summary
An error occurs when loading SharePoint pages inside an iFrame that originate in a different domain.
More information
This is by design. Loading pages in this manner will not work because the HTTP header property X-FRAME-OPTIONS
is set to the value SAMEORIGIN.
Overriding this property by setting the web part to AllowFraming isn't recommended for security reasons. There are several functionalities that will not operate correctly when loaded into iFrame. (This behavior will vary from browser to browser.)
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for