skip to Main Content

CORS Vue and OctoberCMS – CentOS

Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. I'm building an application with Vue (VueX, vue-router, ...) and OctoberCMS. I create virtual domain for API and APP in local via…

VIEW QUESTION

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