ustbhuangyi / vue-sell

:rice: Vue.js高仿饿了么外卖App课程源码 http://coding.imooc.com/class/74.html
3.46k stars 1.36k forks source link

npm run build 后 放到自己的服务器报错,跨域问题,怎么解决 #93

Open zhaoyanwenqi opened 4 years ago

zhaoyanwenqi commented 4 years ago

Access to XMLHttpRequest at 'http://ustbhuangyi.com/sell/api/seller' from origin 'http://10.1.245.111:30686' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.