3 ms·
Server side frameworks can use [the X-Requested-With header] to determine the type of content to return, such as JSON if the header is present and HTML otherwis
by jdale27 14y ago
Server side frameworks can use [the X-Requested-With header] to determine the type of content to return, such as JSON if the header is present and HTML otherwise.
Isn't that what the Accept header is for? How else do servers typically use X-Requested-With?