Enable HSTS for TLS connections
Don't use X-Frame-Options: deny for now
This commit is contained in:
parent
ffe7e65db6
commit
897f5189b0
|
@ -71,9 +71,9 @@ exports.restartServer = function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
app.use(function (req, res, next) {
|
app.use(function (req, res, next) {
|
||||||
res.header("X-Frame-Options", "deny");
|
// res.header("X-Frame-Options", "deny"); // breaks embedded pads
|
||||||
if(settings.ssl){ // if we use SSL
|
if(settings.ssl){ // if we use SSL
|
||||||
res.header("X-Frame-Options", "max-age=31536000; includeSubDomains");
|
res.header("Strict-Transport-Security", "max-age=31536000; includeSubDomains");
|
||||||
}
|
}
|
||||||
|
|
||||||
res.header("Server", serverName);
|
res.header("Server", serverName);
|
||||||
|
|
Loading…
Reference in New Issue