python - Can the WeChat public account authorization callback domain name be set as a second-level domain name?
迷茫
迷茫 2017-05-18 10:55:09
0
1
1127

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?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(1)
伊谢尔伦

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!