[图片][图片] 微信网页开发--网页授权--通过code换取网页授权access_token,这一步我这边也遇到同样跨域的问题~ JS接口安全域名、网页授权域名均以正确配置 第一步可以正常获取code~
网页授权出现跨域问题,域名已经在公众平台配置XMLHttpRequest cannot load https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx1b63f19b557665ec&redirect_uri=https%3A%2F%2Factivitygray.motivape.cn%2F%23%2Ffriends_index%3Fopenid%3D%26channelType%3D0&response_type=code&scope=snsapi_userinfo&state=?openid=&channelType=0#wechat_redirect. Redirect from 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx1b63f19b557665ec&redirect_uri=https%3A%2F%2Factivitygray.motivape.cn%2F%23%2Ffriends_index%3Fopenid%3D%26channelType%3D0&response_type=code&scope=snsapi_userinfo&state=?openid=&channelType=0#wechat_redirect' to 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx1b63f19b557665ec&redirect_uri=https%3A%2F%2Factivitygray.motivape.cn%2F%23%2Ffriends_index%3Fopenid%3D%26channelType%3D0&response_type=code&scope=snsapi_userinfo&state=?openid=&channelType=0&connect_redirect=1#wechat_redirect' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://activitygray.motivape.cn' is therefore not allowed access. [图片]
2020-02-20同样遇到这个问题 挺烦的~
小程序开发工具复制黏贴失常腾讯的能不能给点力,开发工具复制黏贴失常都多久了,还没修复。搞什么?功能越推越多,根本问题不解决。体验真差。
2019-01-25