How to set X-Content-Type-Options header in Apache HTTPD

Solution Verified - Updated -


  • Prevent browser from interpreting files as something else than declared by the content type in the HTTP headers.
  • Where I can find the information on the header X-Content-Type-Options


  • Red Hat Enterprise Linux (RHEL)
  • Red Hat Software Collections (RHSCL)
  • Red Hat JBoss Core Services (JBCS)
  • Red Hat JBoss Web Server (JWS)
  • Apache Web Server (HTTPD)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In