Fix: “We can’t show this embedded content because the code seems to be incomplete. Make sure that the embed code includes width, height and a valid address for the src attribute.” Error

Problem: SharePoint Online Embed web part displays an error message, “We can’t show this embedded content because the code seems to be incomplete. Make sure that the embed code includes width, height and a valid address for the src attribute.”

We can't show this embedded content because the code seems to be incomplete.

Solution:

This is a security setting to prevent malicious scripts from the embedded into sites. You will need to add the domain name to the site settings if you want to embed content from a site.

  • Click on Settings gear >> Site information >> View all site settings.
  • Click on “HTML Field Security” under site collection administration
  • And you can add the domains you’d like to allow to be embedded in the Embed web part.sharepoint online allow iframe

Once the domain is added to the list, you can add any link from the domain/sub-domains in IFrames. By default, Microsoft added popular web sites to the list already:

  • youtube.com
  • youtube-nocookie.com
  • player.vimeo.com
  • bing.com
  • office.microsoft.com
  • officeclient.microsoft.com
  • store.office.com
  • skydrive.live.com
  • powerbi.com
  • powerbigov.us
  • sway.com
  • docs.com
  • microsoftstream.com
  • powerapps.com
  • flow.microsoft.com
  • powerapps.us
  • flow.microsoft.us
  • app.smartsheet.com
  • publish.smartsheet.com
  • www.slideshare.net
  • youtu.be
  • read.amazon.com
  • onedrive.live.com
  • www.microsoft.com
  • forms.office365.us
  • support.office.com
  • embed.ted.com
  • channel9.msdn.com
  • forms.office.com
  • videoplayercdn.osi.office.net
  • sway.office.com
  • linkedin.com
  • web.yammer.com
  • customervoice.microsoft.com

More on configuring HTML field security is here: How to Add/Remove Domain to HTML Field Security in SharePoint Online?

Salaudeen Rajack

Salaudeen Rajack - SharePoint Expert with Two decades of SharePoint Experience. Love to Share my knowledge and experience with the SharePoint community, through real-time articles!

Leave a Reply

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