skip to Main Content

How to solve problem with Axios post request – SEO

There is such a vue method: methods: { sendTrackerClientData () { return axios.post("https://seo-gmbh.eu/couriertracker/json/couriertracker_api.php?action=tracking.data_save&key_id=00227220201402050613" , { tracking_data: 'some data' }) .then(response => { console.log('post method is working!'); }) .catch(function (error) { console.log(error); }); }, } Which is hung on a button…

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