This extension adds the X-Requested-With
header to requests with the value "XMLHttpRequest".
This header is commonly used by javascript frameworks to differentiate ajax requests from normal http requests.
<script src="https://unpkg.com/htmx-ext-ajax-header@2.0.1/ajax-header.js"></script>
<body hx-ext="ajax-header">
...
</body>