参考网址:https://blog.csdn.net/debruyne/article/details/78046831
方法一:在小程序中设置不校验合法域名
方法二: 管理员将要使用的域名添加到小程序后台
设置 --> 服务器域名配置