WeChat authorized login, visit the authentication address: https://open.weixin.qq.com/co...
Oops!something went wrong error appears
The authorized callback domain name in the public account is set to a second-level domain name: for example, test.abc.com.cn
But there is this article in WeChat’s technical documentation:
2. The authorization callback domain name configuration specification is the full domain name. For example, the domain name that requires web page authorization is: www.qq.com. After configuration, the page under this domain name is http://www.qq.com/music. html and http://www.qq.com/login.html can perform OAuth2.0 authentication. However, http://pay.qq.com, http://music.qq.com, and http://qq.com cannot perform OAuth2.0 authentication
So I suspect that the callback domain name I set is a second-level domain name, causing access errors
Then the question is, is it caused by this? How to solve this problem?
伊谢尔伦2017-05-18 10:57:09
Yes, he is talking about The page under the domain namehas little to do with the second-level domain name. Many WeChat developments are second-level domain names.