Home > Article > WeChat Applet > Detailed explanation of the solution to the error in the legal domain name verification of the WeChat applet
This article mainly introduces the detailed explanation and solutions for the legal domain name verification error of the WeChat mini program. Friends in need can refer to the following
The detailed explanation and solution of the legal domain name verification error of the WeChat mini program Solution
Look at the error:
WeChat applet development, what should I do if I encounter this problem?
The reason is that a wx.request request
was initiated and the requested domain name was not set in the WeChat public platform background.
1. Developers manually set it without verification
Whether you have got the App ID or not, I believe many people will do the same thing as me, that is Without further ado, let’s get a general understanding of the documentation, then go directly to github to find the project and try importing it. This is what I did, but I got this error when I first came up. Later I found out that I could actually set up the local development tools myself to not verify the domain name, and it would have no impact at all.
In the last option of "Project", check it and run it.
2. The administrator sets the actual project domain name
If it is an actual project development, the administrator needs to set it first. .
The setting steps are as follows:
1. Log in to the WeChat mini program backend as an administrator
Address: http://mp. weixin.qq.com
2. Set the domain name to be requested to the legal domain name
Note: You can fill in multiple request legal domain names. If there are already other valid domain names, Domain name, just add a new one
As shown in the picture:
Note: After the request secure domain name is saved and submitted, WeChat will have After caching for a period of time, about 10 minutes later, the requested legal domain name will take effect
Thank you for reading, I hope it can help everyone, thank you for your support of this site!
The above is the detailed content of Detailed explanation of the solution to the error in the legal domain name verification of the WeChat applet. For more information, please follow other related articles on the PHP Chinese website!