Security Headers

From OWASP
Revision as of 00:19, 23 February 2014 by Ari Elias-Bachrach (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

HTTP headers which should be included by default. Methods for modifying or removing the headers for specific instances should be provided, but by default there are secure settings which should be enabled unless there are other overriding concerns.

  • X-Frame-Options: SAMEORIGIN [1]
  • X-XSS-Protection: 1; mode=block [2]
  • X-Content-Type-Options: nosniff
  • Content-Type: text/html; charset=utf-8

Additionally, no headers should be included that needlessly divulge information about the server or it's configuration that an end user wouldn't need.