Commit d7c5ec42 by 李伟康

feat(init): 添加请求头 source 字段

在 signHttpConfig 配置中新增 headers 对象,设置 source 为 'app',
用于标识请求来源。此修改有助于后端服务识别请求的客户端类型,
便于进行相应的业务处理和统计分析。
1 parent 0b7377bf
Showing 1 changed file with 3 additions and 0 deletions
......@@ -39,6 +39,9 @@ uni.signHttpConfig = {
timeout: 300000,
appId: signSecretKey.appKey,
appSecret: signSecretKey.secret,
headers: {
'source': 'app'
},
session: {
requiresSession: true,
sessionParamName: 'sessionId',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!