Forum Discussion

Cameron Monks's avatar
Cameron Monks
Brass Contributor
Jan 30, 2017
Solved

HTML Field Security - Group Sites

Hello all   I am having issues embeding an iframe into the content embed webpart on an office 365 group site. When trying to embed iframes I am getting the following error:   Clicking on th...
  • VesaJuvonen's avatar
    VesaJuvonen
    Jan 30, 2017

    This relates on the "noscript" or script capability support. You would get similar result when noscript would be enabled on classic team site. Here's the pointer from the following support article.

     

    HTML Field Security - No longer available in Library Settings. - You can still use HTML field security that you set up before scripting was disabled.

     

    https://support.office.com/en-us/article/Turn-scripting-capabilities-on-or-off-1f2c515f-5d7e-448a-9fd7-835da935584f?ui=en-US&rs=en-US&ad=US

     

    Using iFrame has been classicfied as JavaScript injection security challenge and it's disabled for the content areas when noscript is enabled. NoScript setting is enabled by default for Office 365 Groups / Modern team sites and you cannot disable that. When site has scripting capabilities disabled, all scenarios where user can inject script to be executed on behalf of the user, without administrative concent, are being disabled. Custom SharePoint Framework web parts are approved by administrator(s), so they do work on the modern sites.

Resources