fix: HSTS header max-age value (#3225)

pull/3245/head
pylr 4 years ago committed by GitHub
parent 5ffa189383
commit e87d511978
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -33,7 +33,7 @@ module.exports = function (req, res, next) {
// -> Enforce HSTS
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

Loading…
Cancel
Save