鍍金池/ 問答/網(wǎng)絡(luò)營銷  HTML/ 微信開發(fā)后臺用egg被禁止了路由重定向

微信開發(fā)后臺用egg被禁止了路由重定向

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#wechat_redirect", redirection is prohibited.

源碼是this.ctx.redirect('https://open.weixin.qq.com/co...

把這個重定向的鏈接redirect_uri后面的拿出來單獨放到微信里可以訪問。
請教是不是egg的安全設(shè)置有問題呢

用的是natapp轉(zhuǎn)的
csrf: {

  enable: false,

}

回答
編輯回答
貓小柒

找到原因了,domainWhiteList加入'.qq.com'

2017年3月9日 01:00