开发中所有https接口用Postman能访问,用小程序就不能访问
有人对https比较熟的吗
我的https接口用postman能访问,但是小程序就访问不了
接口如下
https://www.rqcf.net/api/RiskManagementAPI/Getall?pageindex=1
用GET方法
![](https://image.wxopen.club/content_6ff73b18-382d-11ea-a2e6-001a7dda7111.png)
![](https://image.wxopen.club/content_7005fe08-382d-11ea-bbd9-001a7dda7111.png)
请求代码如下:
wx.request({
url: ‘https://www.rqcf.net/api/RiskManagementAPI/Getall?pageindex=1’,
data: {},
method: ‘GET’,
header: {
‘content-type’: ‘application/json’,
},
success: function (res) {
console.log(“res”, res);
}
});