Recognize datatables ajax request
Recognize datatables ajax request

Description of problem: Hello, I'd like to recognize in the backend requests made by the datatables library. Does the library issue any specific headers with its requests?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
I used the browser's Network Inspector tool to look at the request headers in this example. I didn't see anything Datatables specific. Although @allan can confirm. You could send your own customer header. See the
ajax
docs for details, specifically the Object Type.Kevin
@kthorngren Thank you. What exactly do I have to do to use the ajax option with custom headers? In the link you provided, I cannot find a mention of headers.
You will need to refer to the jQuery ajax docs for details. The
ajax
docs state this:Kevin