详细问题描述
使用 HBuilder X 2.4.6.20191210 :
var webview = plus.webview.create("", "custom-webview", {
top: uni.getSystemInfoSync().statusBarHeight + 44,
bottom:0,
progress: {
color: '#FF3333',
}
})
var headers = {'Token': 'test'}
webview.loadURL("http://test.com/", headers)
以上代码,在 iOS 基座 下能加上 headers。但是在安桌基座和打包apk 运行无效,headers加不上去。
Kindi丶
ios模拟器可以添加header 后台可以接收到。
2020-03-30 17:36