5 ms·
HTTP Headers Every Web Developer Should Know
- jdale27 14y agoServer 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?