am getting this method not allowed 405 error when am trying to post to database through ajax post request to post route. Please Help
$.ajaxSetup({
headers: { 'X-CSRF-Token' : $('meta[name="csrf-token"]').attr('content') }
});
$.ajax({
url: '',
data:{"finalPointArray" : finalPointsMap,
"tourId":tourId,
"picWidth":picWidth,
"picName":picName
},
async:true,
type:'post',
success:function(response){
console.log("coordinates sent");
finalPointsMap=[];
pointsMap=[];
pointsMap.push(initialPoint);
},
error:function(e){
console.log("error");
console.log(e);
}
});
i have also tried url: '',
but it is also not working my route is : Route::resource('/HeatMapCoordinates','HeatMapCoordinatesController');
from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2Fa8wbV
via IFTTT
Aucun commentaire:
Enregistrer un commentaire