Uniapp开发微信小程序时需要请求api.weixin.qq.com,但报错:VM27 asdebug.js:1 https://api.weixin.qq.com 不在以下 request 合法域名列表中

但是小程序开发配置中又无法添加api.weixin.qq.com
后面在参数文档中看到说明
https://developers.weixin.qq.com/miniprogram/dev/framework/ability/network.html
出于安全考虑,api.weixin.qq.com 不能被配置为服务器域名,相关API也不能在小程序内调用。 开发者应将 AppSecret 保存到后台服务器中,通过服务器使用 getAccessToken 接口获取 access_token,并调用相关 API;

