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

I'm storing axios response into two different "data" variables, if I change one variable it will automatically changes other variable – Twitter API

In the below html code , I'm simply iterating through 2 variables posts and cp_posts: HTML CODE <div v-if="loading"> loading... </div> <div v-else> <p style="background:#ebebeb" v-for="post in posts"> {{post}} </p> <p style="background:#ebaaeb" v-for="post in cp_posts"> {{post}} </p> </div> </div> In…

VIEW QUESTION
Back To Top
Search