fix: HSTS header max-age value (#3225)
This commit is contained in:
parent
5ffa189383
commit
e87d511978
@ -33,7 +33,7 @@ module.exports = function (req, res, next) {
|
|||||||
|
|
||||||
// -> Enforce HSTS
|
// -> Enforce HSTS
|
||||||
if (WIKI.config.security.securityHSTS) {
|
if (WIKI.config.security.securityHSTS) {
|
||||||
res.set('Strict-Transport-Security', `max-age=${WIKI.config.securityHSTSDuration}; includeSubDomains`)
|
res.set('Strict-Transport-Security', `max-age=${WIKI.config.security.securityHSTSDuration}; includeSubDomains`)
|
||||||
}
|
}
|
||||||
|
|
||||||
// -> Prevent Open Redirect from user provided URL
|
// -> Prevent Open Redirect from user provided URL
|
||||||
|
Loading…
Reference in New Issue
Block a user