公众号网页授权获取openId,出现跨域问题。
如题下错误
Access to XMLHttpRequest at 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx30cd90a0de705a91&redirect_uri=http%3A%2F%2Fic.wikihost.cn%2Fgateway%2FweChat%2Flogin&response_type=code&scope=snsapi_base&state=1000&connect_redirect=1#wechat_redirect' from origin 'http://XXX.XXX.XX' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
微信公众号也设置了网页授权页面
急求!
请问楼主问题是否解决?
同问,是否有人解决了!!
服务器端可用Response.Redirect,浏览器端可用 window.location。
相同的问题,有人解决吗?