When the enterprise WeChat develops the login authorization, it prompts that the scope cannot be empty, and the error code is 1001

Scope cannot be empty 1001 in the prompt of enterprise login authorization

The reason is that we have a single-page application url with #/ in WeChat that the parameters after the # are not recognized

The back-end developer puts the parameters in the front-end of the jump URL, and the correct form is

 

https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx83df6c21d57f9d1c&response_type=code&scope=snsapi_privateinfo&agentid=90&redirect_uri=https://uat.zikuinfo.com/jdpop/#/&state=STATE#wechat_redirect

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324977791&siteId=291194637