Browse Source

Added Referrer Policy

pull/279/head
Alexander Gebhard 7 years ago
committed by Nicolas Giard
parent
commit
1266e1f02b
1 changed files with 3 additions and 0 deletions
  1. 3
      server/middlewares/security.js

3
server/middlewares/security.js

@ -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()
}
Loading…
Cancel
Save