How to change Ajax Request Headers in Datatables
How to change Ajax Request Headers in Datatables
Rezalfa
Posts: 1Questions: 1Answers: 0
Hi.
I use Datatables for my project. i have problem about header when i send a request from datatables to my controller in mvc.
the X-Requested-With is missing in header and the if case " Request.IsAjax() " returns false!!!
how can i fix that?
Thanks.
This discussion has been closed.
Answers
The
ajax
option basically just extends the jQuery ajax object, so anything you can do with jQuery's Ajax you can do in DataTables - e.g.:Allan