The use of egg in Wechat's development background is prohibited from routing redirection.

a security problem has been de
tected for url "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxaf4b4a767b7ecdfa&redirect_uri=http%3a%2f%2ft1.x.cn%2foauth&response_type=code&scope=snsapi_userinfo&state=123-sharpwechat_redirect", redirection is prohibited.

Source code is this.ctx.redirect (" https://open.weixin.qq.com/co.

take out the redirected link behind redirect_uri and put it separately in Wechat to access it.
ask if there is something wrong with the security settings of egg

uses
csrf: {

transferred from natapp.
  enable: false,

}

Apr.09,2021

found the reason, domainWhiteList added '.qq.com'

Menu