If you use Google Chrome like me when customizing SharePoint, you may run into this error when working with the Script Editor webpart in SharePoint 2013 or SharePoint Online. This error appears when you try to save a page after making changes to a Script Editor:

“Chrome detected unusual code on this page and blocked it to protect your personal information (for example, passwords, phone numbers, and credit cards).”


You can avoid this error by using Internet Explorer. However, die-hard Chrome users can do this instead as workaround:

  1. Install the Chrome extension Requestly
  2. Activate Requestly, then open Requestly’s settings page
  3. Click on the + button
  4. Click Modify Headers
  5. Enter a rule name, and set Status: Active
  6. Under the Headers Modification Rules, enter:
    1. Add
    2. Response
    3. Header: X-XSS-Protection
    4. Value: 0
    5. Url Contains: [hostname of your SharePoint site, e.g. mysite.sharepoint.com]
  7. Click Save

That’s it! This avoids the error and lets you save your pages again. Remember to deactivate the rule when you do not need it anymore.

Written By:


More By This Author