网页授权问题 出现跨域问题
公众号网页授权获取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.
微信公众号也设置了网页授权页面
急求!