相关疑难解决方法(0)

什么是"X-Content-Type-Options = nosniff"?

我正在使用OWASP ZAP对我的localhost进行一些渗透测试,并且它会不断报告此消息:

Anti-MIME-Sniffing标头X-Content-Type-Options未设置为'nosniff'

此检查特定于Internet Explorer 8和Google Chrome.如果Content-Type标头未知,请确保每个页面设置Content-Type标头和X-CONTENT-TYPE-OPTIONS

我不知道这意味着什么,我在网上找不到任何东西.我试过添加:

<meta content="text/html; charset=UTF-8; X-Content-Type-Options=nosniff" http-equiv="Content-Type" />
Run Code Online (Sandbox Code Playgroud)

但我仍然得到警报.

设置参数的正确方法是什么?

html meta owasp http-headers penetration-testing

256
推荐指数
5
解决办法
29万
查看次数

标签 统计

html ×1

http-headers ×1

meta ×1

owasp ×1

penetration-testing ×1