【发布时间】:2017-10-30 20:09:54
【问题描述】:
我需要将所有 cookie 从一台服务器传递到 nodejs/express 中的另一台服务器。 我正在使用 request-promise 执行 HTTP 请求和 cookie 解析器来解析我的应用程序上的 cookie。
这是所需功能的伪代码
router.get('/', (req, res, next) => {
options = {
method: "get",
uri: 'http://example.com',
cookies: req.cookies // this is the desire functionality
}
request(options).then()
});
谢谢(:
【问题讨论】: