Open williamling opened 4 years ago
每次页面加载之后 控制台都会报跨域问题 Cross-Origin Read Blocking (CORB) blocked cross-origin response https://webapi.amap.com/maps/cookie?key=amap_ver&value=1536672475632 with MIME type application/javascript. See https://www.chromestatus.com/feature/5629709824032768 for more details.
import VueAMap from 'vue-amap'
Vue.use(VueAMap) VueAMap.initAMapApiLoader({ key: '', plugin: ['AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PlaceSearch', 'AMap.Geolocation', 'AMap.Geocoder'], v: '1.4.4', uiVersion: '1.0' })
楼主解决了吗
有人解决了吗
问题
每次页面加载之后 控制台都会报跨域问题 Cross-Origin Read Blocking (CORB) blocked cross-origin response https://webapi.amap.com/maps/cookie?key=amap_ver&value=1536672475632 with MIME type application/javascript. See https://www.chromestatus.com/feature/5629709824032768 for more details.
VueAMap 最新版本
OS/Browsers chrome 最新版本
Vue 版本 Vue2.0
代码
import VueAMap from 'vue-amap'
Vue.use(VueAMap) VueAMap.initAMapApiLoader({ key: '', plugin: ['AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PlaceSearch', 'AMap.Geolocation', 'AMap.Geocoder'], v: '1.4.4', uiVersion: '1.0' })