Added Referrer Policy
This commit is contained in:
		
				
					committed by
					
						
						Nicolas Giard
					
				
			
			
				
	
			
			
			
						parent
						
							3371651990
						
					
				
				
					commit
					1266e1f02b
				
			@@ -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()
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user