Access to XMLHttpRequest at 'https://api.weixin.qq.com/sns/userinfo?access_token=&openid=&lang=zh_CN' from origin 'http://localhost:8100' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
这个公众号部署在服务器上是没问题的,我现在是在本地进行调试,本地浏览器地址是http://localhost:8100
这个需要在服务器端调用。