首页 新闻 赞助 找找看

X-XSS-Protection设置问题有哪位大神帮我解解惑,感激不尽。

0
[待解决问题]

response.addHeader("X-XSS-Protection", "X-XSS-Protection: 1; mode=block"); 设置后谷歌浏览器出现脚本报错Error parsing header X-XSS-Protection: X-XSS-Protection: 1; mode=block: expected token to be 0 or 1 at character position 0. The default protections will be applied。请问有什么好的解决方案吗?

海的心的主页 海的心 | 菜鸟二级 | 园豆:208
提问于:2018-08-21 09:12
< >
分享
所有回答(1)
0

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8; X-Content-Type-Options=nosniff; X-XSS-Protection: 1;mode=block" />

临冰听雪丶 | 园豆:191 (初学一级) | 2018-09-27 17:42
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册