[WeChat Mini Program] There is an error in valid domain name verification, which is not listed in the following legal domain name list.

During the development of WeChat applet, the following problems occurred when requesting data:

Valid domain name verification error

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.

write picture description here

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

write picture description here

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325479320&siteId=291194637