{"id":1867,"date":"2015-01-14T18:02:46","date_gmt":"2015-01-14T16:02:46","guid":{"rendered":"http:\/\/hasselba.ch\/blog\/?p=1867"},"modified":"2015-01-14T18:02:46","modified_gmt":"2015-01-14T16:02:46","slug":"security-usefull-http-response-headers","status":"publish","type":"post","link":"https:\/\/hasselba.ch\/blog\/?p=1867","title":{"rendered":"Security: Usefull HTTP Response Headers"},"content":{"rendered":"<p>Here is a list of usefull HTTP headers for responses you should know about:<\/p>\n<ul>\n<li><strong>X-Content-Type-Options<\/strong><\/li>\n<\/ul>\n<p>When set to &#8222;<em>nosniff<\/em>&#8222;, this header will prevent browsers from MIME-sniffing a response away from the declared content-type. While this header is more relevant for &#8222;normal&#8220; web applications (it protects against some types of drive-by-downloads), it does not hurt to add it to your REST service, if<\/p>\n<p>See <a title=\"msdn.com: IE8 Security Part VI: Beta 2 Update\" href=\"http:\/\/blogs.msdn.com\/b\/ie\/archive\/2008\/09\/02\/ie8-security-part-vi-beta-2-update.aspx\" target=\"_blank\">http:\/\/blogs.msdn.com\/b\/ie\/archive\/2008\/09\/02\/ie8-security-part-vi-beta-2-update.aspx<\/a><\/p>\n<pre><code>X-Content-Type-Options: nosniff<\/code><\/pre>\n<ul>\n<li><strong>X-Frame-Options<\/strong><\/li>\n<\/ul>\n<p>Provides Clickjacking protection. Allowed values are:<\/p>\n<ul style=\"list-style-type: circle;\">\n<li><i>deny <\/i>no rendering within a frame<\/li>\n<li><i>sameorigin <\/i>no rendering if origin mismatch<\/li>\n<li><i>allow-from: &lt;DOMAIN&gt; <\/i>allow rendering if framed by frame loaded from <i>DOMAIN<\/i><\/li>\n<\/ul>\n<pre><code>X-Frame-Options: deny<\/code><\/pre>\n<ul>\n<li><strong>X-XSS-Protection<\/strong><\/li>\n<\/ul>\n<p>Re-enables cross side scripting protection in IE and Chrome if user has disabled it.<\/p>\n<pre><code>X-XSS-Protection: 1; mode=block<\/code><\/pre>\n<ul>\n<li><strong>Strict-Transport-Security<\/strong><\/li>\n<\/ul>\n<p>Enables <a title=\"wikipedia.org: HTTP Strict Transport Security\" href=\"http:\/\/en.wikipedia.org\/wiki\/HTTP_Strict_Transport_Security\" target=\"_blank\">HTTP Strict Transport Security (HSTS)<\/a>. This prevents browsers from using an insecure connection to a server for a given time (in seconds). Additionally, you can include all subdomains:<\/p>\n<pre><code>Strict-Transport-Security: max-age=16070400; includeSubDomains<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Here is a list of usefull HTTP headers for responses you should know about: X-Content-Type-Options When set to &#8222;nosniff&#8222;, this header will prevent browsers from MIME-sniffing a response away from the declared content-type. While this header is more relevant for &hellip; <a href=\"https:\/\/hasselba.ch\/blog\/?p=1867\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,35],"tags":[90],"class_list":["post-1867","post","type-post","status-publish","format-standard","hentry","category-allgemein","category-security","tag-security"],"_links":{"self":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1867","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1867"}],"version-history":[{"count":4,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1867\/revisions"}],"predecessor-version":[{"id":1879,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1867\/revisions\/1879"}],"wp:attachment":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}