对接项目中,客户要求相关通讯接口添加公共信息头信息, 包含以下字段
sign、timestamp、nonce等等
设置方式为:
ctx.set({
appid: 'appid',
nonce,
sign: '***********',
timestamp,
'Cache-Control': 'no-cache',
'Content-Length': JSON.stringify(params).length
});