invalid vue-cli3 setting agent
this is my code for setting up the agent:
module.exports = {
devServer: {
open: true,
proxy: {
"/news": {
target: "http://192.168.1.244/api",
ws: true,
changeOrigin: true
}
}
}
}
error report:
Failed to load http://192.168.1.244/api/news.: No "Access-Control-Allow-Origin" header is present on the requested resource. Origin" http://localhost:8080" is therefore not allowed access