Skip to content

Commit

Permalink
Do not set HSTS header
Browse files Browse the repository at this point in the history
Enabling HTTP Strict-Transport-Security should be a decision made by the
system administrator, and implemented at server level, probably
site-wide and not just for MantisBT's PHP files.

Furthermore, Mantis setting this header causes issues if it is already
set for the server (invalid header), and may have unwanted side effects
as described in #21262.

This reverts the change implemented to resolve issue #12881.

Fixes #21262
  • Loading branch information
dregad authored and vboctor committed Sep 5, 2016
1 parent 35ba0d9 commit 2e7fac4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/http_api.php
Expand Up @@ -236,10 +236,6 @@ function http_security_headers() {
}

http_csp_emit_header();

if( http_is_protocol_https() ) {
header( 'Strict-Transport-Security: max-age=7776000' );
}
}
}

Expand Down

0 comments on commit 2e7fac4

Please sign in to comment.