mirror of https://github.com/xwiki-labs/cryptpad
relex HSTS header checkup to only require a max age
Signed-off-by: creme <creme@envs.net>
This commit is contained in:
parent
a7463c1987
commit
940d7d3118
|
@ -1579,8 +1579,7 @@ define([
|
|||
var HSTS = H['strict-transport-security'];
|
||||
|
||||
// check for a numerical value of max-age
|
||||
// and the use of includeSubDomains
|
||||
if (/max\-age=\d+/.test(HSTS) && /includeSubDomains/.test(HSTS)) {
|
||||
if (/max\-age=\d+/.test(HSTS)) {
|
||||
return void cb(true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue