RECOMMENDED: Click here to fix Windows errors and optimize system performance
The Chrome browser has an XSS security audit function that analyzes the HTML submitted via the form values and blocks these requests from XSS so that forms are never submitted and any XSS exploit is avoided. The problem is that since version 57 of Chrome, it has started blocking POST submissions with some HTML structures. A Chrome error message with the name ERR_BLOCKED_BY_XSS_AUDITOR is displayed and the form is not sent at all.
How to Fix Error Message ERR_BLOCKED_BY_XSS_AUDITOR
Add Some Page Headers
If you are a website administrator and this error message occurs during normal use, you can try to delete it by adding some page headers to the POST headers. This is a temporary solution until you can find an appropriate alternative that correctly handles the XSS auditor’s request.
- Add the following header to your PHP file: header(‘X-XSS-Protection:0’) ;
- To temporarily disable XSS protection, use HttpContext.Response.AddHeader(“X-XSS-Protection”,”0″);
- Configure the Web file Config,
<add name=”X-XSS-Protection” value=”0″ />
- Add request validation, var code = Request.Unvalidated.Form[“code”];
- To turn-off web.config, <httpRuntime requestValidationMode=”2.0″/>
- Does the problem persist in incognito mode?
- If it helps, temporarily disable your extensions to determine what is causing the rendering problem. To do this, go to chrome://extensions and disable Enabled for each extension individually.
- It may be useful to clear the cache and cookies.
- Disable any firewall software you have installed / try to use another Internet network provider.
- Try resetting the Chrome browser to see if it helps you.
Disable Chrome XSS Auditor
- Right-click a Google Chrome shortcut on your desktop.
- Click on Properties in the drop-down menu bar.
- Add this at the end of the target path of the line: -disable-xss-auditor.
Example: Target: “C:\Program files\Google\Chrome\Application\chrome.exe” -disable-xss-auditor
Note: If you do not have a Google Chrome shortcut on your desktop, go to the Google Chrome folder on your computer and right-click the Google Chrome exe or shortcut and choose Send to > Desktop (Create shortcut).
RECOMMENDED: Click here to troubleshoot Windows errors and optimize system performance