// global controllerapp.get('/*',function(req,res,next){ res.header('X-XSS-Protection' , 0 ); next(); // http://expressjs.com/guide.html#passing-route control});只要确保这是您添加的第一个控制器,顺序就很重要。

// global controllerapp.get('/*',function(req,res,next){ res.header('X-XSS-Protection' , 0 ); next(); // http://expressjs.com/guide.html#passing-route control});只要确保这是您添加的第一个控制器,顺序就很重要。