How to use an iFrame in a modern SharePoint Online page

Using the Embed web part I was trying to paste in a site URL when I should have been using the iFrame HTML tag.

example:

<iframe src="https://sharepointed.com" height="200" width="300"></iframe>

If you encounter this error: This website doesn’t support embedding using just the address ….

You will need to update the HTML Field Security settings in the Site Settings area of your site. In my case, I simply added sharepointed.com to the allow iframes from this domain list, then updated the web part again.

4 thoughts on “How to use an iFrame in a modern SharePoint Online page

  1. Unfortunately this is not working in our environment. When using an iFrame the referenced HTML file is beeing downloaded (!) instead of embedding it into the SharePoint-Page. Very peerie of eyes!

  2. That I don’t know, I’m currently using an iFrame in a modern SP page to display a fairly robust search experience, and no one has reported any issues returning data. Please let me know what you find!

Leave a Reply

Your email address will not be published. Required fields are marked *