{"id":199,"date":"2021-04-09T10:28:13","date_gmt":"2021-04-09T10:28:13","guid":{"rendered":"http:\/\/blog.bp8.pl\/?p=199"},"modified":"2021-04-09T10:32:39","modified_gmt":"2021-04-09T10:32:39","slug":"azure-app-service-how-to-change-the-http-strict-transport-security","status":"publish","type":"post","link":"https:\/\/blog.bp8.pl\/index.php\/2021\/04\/09\/azure-app-service-how-to-change-the-http-strict-transport-security\/","title":{"rendered":"Azure App Service how to change the &#8216;HTTP Strict Transport Security&#8217; ?"},"content":{"rendered":"\n<p>The HTTP Strict Transport Security can be changed by modifying the coutboundRules section of the web.config as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;configuration&gt;\n  &lt;system.webServer&gt;\n    &lt;rewrite&gt;\n      &lt;outboundRules&gt;\n      &lt;!-- here we change the 'HTTP Strict Transport Security' --&gt;\n        &lt;rule name=\"Add Strict-Transport-Security only when using HTTPS\" enabled=\"true\"&gt;\n          &lt;match serverVariable=\"RESPONSE_Strict_Transport_Security\" pattern=\".*\" \/&gt;\n          &lt;conditions&gt;\n            &lt;add input=\"{HTTPS}\" pattern=\"on\" ignoreCase=\"true\" \/&gt;\n          &lt;\/conditions&gt;\n          &lt;action type=\"Rewrite\" value=\"max-age=31536000; includeSubdomains; preload\" \/&gt;\n        &lt;\/rule&gt;\n      &lt;\/outboundRules&gt;\n    &lt;\/rewrite&gt;\n  &lt;\/system.webServer&gt;\n&lt;\/configuration&gt;\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The HTTP Strict Transport Security can be changed by modifying the coutboundRules section of the web.config as follows:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[95,94],"tags":[84,83,88,87],"_links":{"self":[{"href":"https:\/\/blog.bp8.pl\/index.php\/wp-json\/wp\/v2\/posts\/199"}],"collection":[{"href":"https:\/\/blog.bp8.pl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bp8.pl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bp8.pl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bp8.pl\/index.php\/wp-json\/wp\/v2\/comments?post=199"}],"version-history":[{"count":2,"href":"https:\/\/blog.bp8.pl\/index.php\/wp-json\/wp\/v2\/posts\/199\/revisions"}],"predecessor-version":[{"id":201,"href":"https:\/\/blog.bp8.pl\/index.php\/wp-json\/wp\/v2\/posts\/199\/revisions\/201"}],"wp:attachment":[{"href":"https:\/\/blog.bp8.pl\/index.php\/wp-json\/wp\/v2\/media?parent=199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bp8.pl\/index.php\/wp-json\/wp\/v2\/categories?post=199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bp8.pl\/index.php\/wp-json\/wp\/v2\/tags?post=199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}