Я использую @ vue / cli 3.x, а в моем vue.config.js у меня есть следующее:
devServer: {
proxy: {
"/api": {
ws: true,
changeOrigin: true,
target: "http://localhost:8080"
}
}
}
Но я продолжаю получать ошибку CORS:
Доступ к XMLHttpRequest по адресу 'http://localhost:8080/api' from origin 'http://localhost:3000 'заблокирован политикой CORS: на запрошенном ресурсе отсутствует заголовок' Access-Control-Allow-Origin '.
Любая идея?
devServer: { proxy: { "^/api": { target: url, ws: true, changeOrigin: true } } },
- person Tomer   schedule 19.10.2019