我正在使用@vue/cli 3.x和我的vue.配置.我有这个:
devServer: {
proxy: {
"/api": {
ws: true,
changeOrigin: true,
target: "http://localhost:8080"
}
}
}
但我不断地发现CORS的错误:
从源代码"http://localhost:8080/api"访问XMLHttpRequest
知道吗?