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:
- Install the Chrome extension Requestly
- Activate Requestly, then open Requestly's settings page
- Click on the + button
- Click Modify Headers
- Enter a rule name, and set Status: Active
- Under the Headers Modification Rules, enter:
- Header: X-XSS-Protection
- Value: 0
- Url Contains: [hostname of your SharePoint site, e.g. mysite.sharepoint.com]
- 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.