Created a route for inserting todo in lumen , its working perfectly using postman but in my react application request sending with axios , it getting error
this.apiUrl = 'http://lumenback.dev/createTodo';
axios.post(this.apiUrl, {
todo: this.state.todo,
todo_date: this.props.curDate
})
.then(function (response) {
console.log(response);
}).catch(function (error) {
console.log(error);
});
thanks in advance...