首页 > > > C# 微信授权获取不到code
appid: wxa8354a25e136757a
redirect_uri: 8bbgx4.natappfree.cc/index.html
response_type: code
scope: snsapi_base
state: 123456
重定向到前端html 获取不到code
ess to XMLHttpRequest at 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxa8354a25e136757a&redirect_uri=8bbgx4.natappfree.cc/index.html&response_type=code&scope=snsapi_base&state=123456#wechat_redirect' (redirected from 'http://8bbgx4.natappfree.cc/BIMWX.asmx/OAuthRedirectUrl') from origin 'http://8bbgx4.natappfree.cc' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2508/viewspace-3131319/ ,如需转载,请注明出处,否则将追究法律责任。