I am trying to allow access from everywhere.
I have tried using app middleware:
app.use(function (req, res, next) { res.setHeader(\"Access-Control-Allo
After applying "cors" middleware. You should be passed "http://" before "localhost:". in url send to by Axios like this:
axios.get("http://localhost:8080/api/getData") .then(function (response) { this.items= response.data; }).catch(function (error) { console.log(error) });