During the development of WeChat applet, the following problems occurred when requesting data:
This is because the wx.request request was initiated in the applet, but the requested domain name was not set in the background of the WeChat public platform.
Solution:
1. You can set the domain name not to be verified in the applet.
2. The administrator adds the domain name to be used to the backend of the applet
1. 地址:http://mp.weixin.qq.com
2. 将要请求的域名设置为请求合法域名
注:request 合法域名可以填写多个,如果已经有其它的合域名了,新增一个就行了
- 1
- 2
- 3
- 4