Solve the request fail url is not in domain, not in the following request legal domain name list

After the applet verifies the legal domain name (online), it will report an error request: fail url not in domain list

An error has been prompted in the development panel: https://xxx.com is not in the following request legal domain name list, please refer to the document: https://developers.weixin.qq.com/miniprogram/dev/framework/ability/network.html

Then open the document, and the prompt is shown in the figure:

It's very clear, you need to configure a legal domain name in the background, so follow the instructions to come to the background:

Click to open the configuration domain name:

All are configured. It should be noted that the cache is quite powerful. The validating domain name is turned on in the development tool, and the configuration is configured to refresh in the middle. Clear the cache for the items that are already online, and wait for the cache to expire 

Guess you like

Origin blog.csdn.net/EasyTure/article/details/111407451