开发中所有https接口用Postman能访问,用小程序就不能访问

发布于 7 年前作者 azhang8718 次浏览最后编辑 7 年前来自 ask

有人对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 回复
jie20
jie202 楼6 年前

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

kxu
kxu3 楼6 年前

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

tangjing
tangjing4 楼5 年前

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