Back to Expressjs

Req Xhr

_includes/api/en/5x/req-xhr.md

latest252 B
Original Source
<h3 id='req.xhr'>req.xhr</h3>

A Boolean property that is true if the request's X-Requested-With header field is "XMLHttpRequest", indicating that the request was issued by a client library such as jQuery.

js
console.dir(req.xhr)
// => true