收藏
回答

获取微信公众号素材列表发生跨域请求问题?

vue+webpack+axios项目下,由前端页面请求微信公众号获取素材列表的api发生跨域请求问题,报错如下:

Access to XMLHttpRequest at 'https://api.weixin.qq.com/cgi-bin/material/batchget_material?access_token=access_token' from origin 'http://localhost:8080' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签