Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How to Test website for X-Content-Type-Options header?


Could you please tell me the list of tools that find the
X-Content-Type-Options


What I have tried:

I have tried but got the online urls but i am trying to check in any tools which provide security to test.
Posted
Updated 11-Sep-17 4:19am

1 solution

You can use any tool that can send a HTTP HEAD request and parse the answer.

With curl for example:
# curl -I http://www.codeproject.com
HTTP/1.1 301 Moved Permanently
Cache-Control: private
Content-Length: 59
Content-Type: text/html; charset=utf-8
Location: https://www.codeproject.com/
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
Set-Cookie: vk=11a1dc35-ac44-42c8-92a3-d78f457ca2c0; domain=.codeproject.com; expires=Tue, 11-Sep-2018 04:00:00 GMT; path=/; HttpOnly
Set-Cookie: SessionGUID=1fa7e3c1-5c50-4037-9c56-4bd24e70b1fc; path=/; HttpOnly
Date: Mon, 11 Sep 2017 14:15:59 GMT
 
Share this answer
 
Comments
DGKumar 12-Sep-17 8:17am    
Hi Jochen,
If i add this "X-Content-Type-Options: nosniff" in my web.config the icons are not displaying in IE .
I have searched in google the solution is need to change png format images into jpg format.
Could you please tell me except this, Is there any solution to fix this?
Because i should include X-Content-Type-Options: nosniff in my web.config.
Jochen Arndt 12-Sep-17 8:27am    
I have not used that and can't help therefore.

But according to https://developer.mozilla.org/de/docs/Web/HTTP/Headers/X-Content-Type-Options:
"Note: nosniff only applies to "script" and "style" types. Also applying nosniff to images turned out to be incompatible with existing web sites."

should it not be applied to image types.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900