Forum Discussion
SP Online New Page Experience Embed Code Error
Hi, when trying to authro a new page using the new page experience in SharePoint Online, and trying to add Embed Code web part so that I can play the video from this page (https://technet.microsoft.com/en-us/library/mt584223.aspx) on my page. I get this error:
"Embedding content from this website isn't allowed. This is a setting your admin can change."
FYI:
The video embed code is:
<iframe src="//videoplayercdn.osi.office.net/hub/?csid=ux-cms-en-us-msoffice&uuid=f14d9092-feaf-46dc-aae0-508d935c34fb&AutoPlayVideo=true&height=415&width=740" frameborder= "0" marginwidth= "0" marginheight= "0" scrolling= "no" allowfullscreen= "" style="width: 740px; height: 415px;"></iframe>
- You can solve it (I have just verified it) by configuring the HTM Field Security in the site settings page (http://community.bamboosolutions.com/blogs/sharepoint-2013/archive/2013/05/22/how-to-use-html-field-security-and-insert-iframes-into-sharepoint-2013-sites.aspx). Simply there add the domain of your video(s)...in yor particular case: videoplayercdn.osi.office.net and the Content Embed WebPart will work like a charm
Cheers,
4 Replies
Your issue sis Cross domain iframes:
https://support.microsoft.com/en-us/kb/2795602
See also:
https://blogs.msdn.microsoft.com/officeapps/2012/12/12/iframing-sharepoint-hosted-pages-in-apps/
- You can solve it (I have just verified it) by configuring the HTM Field Security in the site settings page (http://community.bamboosolutions.com/blogs/sharepoint-2013/archive/2013/05/22/how-to-use-html-field-security-and-insert-iframes-into-sharepoint-2013-sites.aspx). Simply there add the domain of your video(s)...in yor particular case: videoplayercdn.osi.office.net and the Content Embed WebPart will work like a charm
Cheers,- bart_vermeerschIron Contributor
Unfortunately this seems not possible for team sites linked to Office 365 groups.
As Admin of such a group, you don't have access to this setting page /_layouts/15/HtmlFieldSecurity.aspx