yezihaohao/react-qmap

js文件跨域问题

yinyuncan opened this issue · 1 comments

Access to script at 'http://mapapi.qq.com/c/=/jsapi_v2/2/4/132/main.js' from origin 'http://site.big-sight.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

image

问题解决了,我改了源码,把http改为https就没报跨域错误了