报错: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:9999' is therefore not allowed access
本地前端框架 Vue、vue-cli、webpack
先找到前端 /config/index.js 配置文件中的proxyTable:{ }
修改如下:
最后回到调用接口的 .vue 文件中 :
这时候重启前端服务:npm run dev 即可