开发中所有https接口用Postman能访问,用小程序就不能访问
发布于 6 年前 作者 azhang 8565 次浏览 来自 问答

有人对https比较熟的吗
我的https接口用postman能访问,但是小程序就访问不了

接口如下
https://www.rqcf.net/api/RiskManagementAPI/Getall?pageindex=1

用GET方法

请求代码如下:

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);

}

});

4 回复

问题已经解决,服务器没有开443端口

请排查网络情况,检查工具的代理设置是否正确。

你的域名被微信,屏蔽掉了吧!!换个域名就行!!

回到顶部