Explanation and solution for errors in the verification of valid domain names of applets and verification of applets
Explanation and solution for errors in checking valid domain names of applets
See the error:
What should I do if I encounter this problem during applet development?
The cause is that the wx. request is initiated.
The requested domain name is not set in the background of the public platform.
1. manually set by the developer without verification
No matter whether you get the App ID or not, I believe many people will do the same thing as me, that is, they will first get to know the document, then go to github to find a project, and try importing it. When I did this, I reported this error. Later I found that I could set up a local development tool without verifying the domain name.
Select the last option in "project" and then run it.
2. The administrator sets the actual project domain name.
For actual project development, the administrator needs to set it up first.
The procedure is as follows:
1. log on to the background of the Applet as an administrator
Address: http://mp.weixin.qq.com
2. Set the domain name to be requested to be a valid Domain Name
Note: You can enter multiple valid request domain names. If you already have other domain names, add one.
:
Note: after the request security domain name is saved and submitted, it will be cached for a period of time. After about 10 minutes, the request legal domain name will take effect.
Thank you for reading this article. I hope it will help you. Thank you for your support for this site!