400 bad request error when using AJAX in mobile device

I am using AJAX with jQuery. In desktop view AJAX working well while using with mobile devices or ipad AJAX is not working. It is showing 400 bad request error.

Here is my code:

jQuery.ajax({

type: ‘post’,
url: my_ajax_object.ajax_url,
cache: false,
data: {
action: ‘shows_month’,
currentDate: selectDate,
showLimit: showvalue,
},
success: function(s){
console.log(s);
jQuery(‘.elements-area’).html(s);
},
error: function(er){
console.log(er);
}
}

Read more here:: 400 bad request error when using AJAX in mobile device

Leave a Reply

Your email address will not be published. Required fields are marked *