htmx-ext-ajax-header

2.0.2 • Public • Published

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.

Install

<script src="https://unpkg.com/htmx-ext-ajax-header@2.0.1/ajax-header.js"></script>

Usage

<body hx-ext="ajax-header">
 ...
</body>

Readme

Keywords

none

Package Sidebar

Install

npm i htmx-ext-ajax-header

Weekly Downloads

10

Version

2.0.2

License

none

Unpacked Size

2.78 kB

Total Files

8

Last publish

Collaborators

  • carsongross