skip to Main Content

XMLHttpRequest blocked by CORS Policy on axios.post – Apache

The axios.post (code below) must send data to url api/add-todo, but I get these errors: axios.post('http://localhost/vueoctober/todo/api/add-todo', todo).then(function (response) { console.log(response); }).catch(function(error) { console.log(error); }); The route api/add-todo is handled with October method Route::get() (https://octobercms.com/docs/services/router). Why is it not found? If…

VIEW QUESTION
Back To Top
Search