none
In sharepoint 2019,chrome browser - if we add content editor webpart in a new page, why so many console errors like 'XSS auditor refused to execute a script' RRS feed

  • Question

  • In sharepoint 2019,chrome browser - if we add content editor webpart in a new page, many console errors like below.

    1.The XSS Auditor refused to execute a script in 'https://aaa.com/sites/content/Pages/Test.aspx' because its source code was found within the request. The auditor was enabled as the server did not send an 'X-XSS-Protection' header.

    2.Test.aspx: Uncaught ReferenceError: ExecuteOrDelayUntilBodyLoaded is not defined

    3.Uncaught ReferenceError: MSOLayout_SetupLayoutFlags is not defined

    4.Uncaught ReferenceError: RegisterSod is not defined.

    Let me know why these many console errors in chrome browser if we add the Content editor webpart. Because of these many errors,page got struct with White page.

    I added the below tags in custom headers section in web.config of particular section.

    <customHeaders>
            <remove name="X-Powered-By" />
            <add name="X-Content-Type-Options" value="nosniff" />
            <add name="X-XSS-Protection" value="0" />        
          </customHeaders>

    Still issue not resolved.            

     Can you please provide the solution where i have to do the changes?

    Wednesday, September 4, 2019 2:50 PM

All replies