X-Powered-By中的Express在哪个地方能改呢
如题
4 回复
var yourheader = function(req, res, next){
res.setHeader('X-Powered-By', 'yourheader');
next();
}
then
app.configure(function(){
app.use(yourheader);
}如题
var yourheader = function(req, res, next){
res.setHeader('X-Powered-By', 'yourheader');
next();
}
then
app.configure(function(){
app.use(yourheader);
}