访问百度地图 api 出现跨域问题

我的代码是这样子的,请问哪里写错了?

index.vue

<script>
export default {
  name: 'index',
  created () {
    this.getCity()
  },
  methods: {
    getCity () {
      this.$axios({
        url: '/location/ip?ak=xxxxxx&coor=bd09ll',
        timeout: 5000
      }).then(response => {
        console.log('------', response)
      })
    }
  }
}
</script>

quasar.config.js

devServer: {
      https: false,
      port: 8080,
      proxy: [{
        context: ['/location/ip'],
        target: 'http://api.map.baidu.com'
      }],
      open: true // opens browser window automatically
}

控制台报错

image.png