Added Referrer Policy

This commit is contained in:
Alexander Gebhard 2017-10-12 22:24:48 -05:00 committed by Nicolas Giard
parent 3371651990
commit 1266e1f02b

View File

@ -25,6 +25,9 @@ module.exports = function (req, res, next) {
// -> Disable IE Compatibility Mode
res.set('X-UA-Compatible', 'IE=edge')
// -> Disables referrer header when navigating to a different origin
res.set('Referrer-Policy', 'same-origin')
return next()
}