Fork me on GitHub

nodejs 在headers添加内容发送到后端

app.all('*', function(req, res, next){
    req.headers['COOKIE'] = 'Your Cookie'
    next()
})
posted @ 2016-11-10 21:30  明天后浪  阅读(457)  评论(0编辑  收藏  举报