Add sites to allow list to embed content within SharePoint

This post provides a guide on adding a domain to allow embedding in a SharePoint site’s iframe…

1–2 minutes

This has been covered quite a bit in other blog posts, but it came up for me recently and for those who frequent this site, I thought it could come in handy.

Recently I was informed by someone that when they were trying to embed a Sway newsletter within SharePoint it was coming up with the following error:

Embedding content from this website isn’t allowed. This is a setting your admin can change.

– Embed webpart error

Microsoft announced some time ago that they are introducing a unified cloud.microsoft domain for all Microsoft 365 apps and services. So for Sway, there was already an allowed domain within the allowed list, but not the right one.

Here’s how to add a new domain to the allowed list in SharePoint:

  • Navigate to the SharePoint site in question
  • Press the cog > Site information > View all site settings
  • Under site collection administration > select HTML field security
Select HTML field security under site collection administration within site settings.
  • Ensure allow contributors to insert iframes only from the following domains is selected (the default)
  • Enter the domain in the box under allow iframes from this domain
  • Press Add > Press OK
Enter your domain into the allow iframes from this domain box and press add.

Once saved, your change will be reflected within the SharePoint site.

References

Leave a Reply

Recent posts

Discover more from SharePoint Stuff

Subscribe now to keep reading and get access to the full archive.

Continue reading