In this blog post, we'll explore the necessary settings required prior to embedding code within a SharePoint page. Failing to configure these settings correctly may result in issues when utilizing the embed code.
The HTML field security setting is useful to allow or restrict the ability to embed content on SharePoint pages if you use external images in JSON formatting.
Common issue like:
External Icon/Image URLs not working in JSON Formatting.
Embedding content from this website isn't allowed.
"Embedding content from this website isn't allowed, but your admin can change this setting. They will need to add 'www.techrobbers.com' to the list of sites that are allowed."
This issue came when you try to add embed code from the site which is not added into the "Allow iframes from this domain". To embed the content from the site you need to add the site in the HTML Field Security.
To resolve this issue, follow steps mentioned below:
1. Click on the gear icon and then click on Site
Settings.
2. On the Site Settings page,
you will find the option "HTML Field
Security" under the "Site
Collection Administration".
3. Click on the "HTML Field Security" and choose the option "Allow contributors to insert iframes only from the following domains"
Type the
domain from which you want add content and click on "Add" and
click on "OK"
Now the issue will be resolved.
If you select "Don't allow contributors to insert iframes from external domains”: It will restrict all the sites in the site collection to use iframe.
If you select "Allow contributors to insert iframes from any domain”: It will allow to use iframe from all the site collections and the external websites also.
Thanks!!!!!!
You may find this blog interesting Add the Social media webparts on SharePoint
Comments
Post a Comment