报错信息: https://xxx 不在以下 request 合法域名列表中
小程序开发在发送请求之前,需要在官方开发者后台中进行服务器域名的配置,才能请求某服务器下的服务。so,lets start here.
1-登录微信公众平台 ,选择左侧导航中的开发选项

2-选择开发设置

3-找到服务器域名-点击修改-后续进行认证

4-认证后-新增需要的域名即可
eg: https://baidu.com;https://xxx.com;
使用;分隔
we done!
happy codeing~
网友评论