我可以通过 js 或 html 强制禁用 chrome 上的 xss 审核员吗?
Can I force to disable xss auditor on chrome by js or html?
我的webpage.jsp无法查看,因为chrome没有设置--disable-xss-auditor
。
已知打开chrome.exe --disable-xss-auditor
即可解决。
但是有什么方法(js代码或html代码)可以在没有规定方法的情况下实现同样的事情吗?
谢谢。
Sites may control the XSS Auditor's behavior using the
X-XSS-Protection
response header, either disabling the feature or
changing its mode.
This Response header disables the Auditor:
X-XSS-Protection: 0
我的webpage.jsp无法查看,因为chrome没有设置--disable-xss-auditor
。
已知打开chrome.exe --disable-xss-auditor
即可解决。
但是有什么方法(js代码或html代码)可以在没有规定方法的情况下实现同样的事情吗?
谢谢。
Sites may control the XSS Auditor's behavior using the
X-XSS-Protection
response header, either disabling the feature or changing its mode.This Response header disables the Auditor:
X-XSS-Protection: 0