Vue devServer proxy is not helping, I still get CORS error
It looks like the problem was with the axios configurations.
I had this definition: axios.defaults.baseURL = "http://localhost:8080/api";
I changed it to axios.defaults.baseURL = "api";
and it works.
module.exports = { ... devServer: { proxy: { "^/api": { target: url, ws: true, changeOrigin: true } } },}