---
title: req.xhr
description: Check if the request was issued with the "X-Requested-With"
---

<h3 id='req.xhr'>req.xhr</h3>

Check if the request was issued with the "X-Requested-With"
header field set to "XMLHttpRequest" (jQuery etc).

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