wx.request({
url: 'http://xxxxx',
data: {
name: 'ssq',
issueCount: '100'
},
header: {
"Referer": "http://xxxxxx",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
},
返回错误如下: 请指教,谢谢
Refused to set unsafe header "user-agent"(env: macOS,mp,1.06.2206090; lib: 2.24.7)
referer user-agent设置无效的 不能设置