http:// cannot be added. On my day, Wechat backstage hints that you will die. I have never seen a team as bad as Wechat. I really
.
1. Check whether the backend is set: official account name-feature settings-JS API security domain name in the upper right corner
2. Check whether the appid in the code is consistent with the id in the official account background
3. If you can't, report back to the official email:
Email address: weixin-open@qq.com
Email subject: [Wechat JS-SDK feedback]
Message description:
Describe the problem in concise language and explain clearly the scenarios in which you encounter the problem. You can attach a screenshot and the Wechat team will deal with your feedback as soon as possible.
1. Check whether the backend is set: official account name-feature settings-JS API security domain name in the upper right corner
2. Check whether the appid in the code is consistent with the id in the official account backend
3, first-level domain name, non-80 port needs to take port number, just stepped on the pit!
remove the backslash, such as www.abc.com
I also encountered this problem, but it is because I use the second-level domain name, using the first-level domain name is ok.
add that if the domain name calling js is a secondary domain name, and the secondary domain name is not configured in the JS API security domain name , it can be directly configured as the primary domain name. For example, if the secondary domain name is abc.baidu.com, then the JS interface security domain name can be configured as baidu.com.
I have the same problem. Just set the two pieces to the same
Sorry. My fault, the appid I use is the service number, but I set the JS interface security domain name in Subscription account. Sorry, now I can use the js interface of Wechat normally. Keep this question. Everyone's answer is very good. You can make a model of misarrangement for later people.
1. Client and server should use the same secure domain name of app id;
2.js to fill in a first-level domain name without protocol, such as abc.com.
how many js interface security domain names can be entered in the test official account
http://blog.csdn.net/u0124169... check this out It may be the nginx reverse proxy
https://blog.csdn.net/qq_3204...
may be this