📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

htmx-ext-ajax-header

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

htmx-ext-ajax-header

This extension adds the `X-Requested-With` header to requests with the value "XMLHttpRequest".

2.0.2
latest
Source
npm
Version published
Maintainers
0
Created
Source

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>

FAQs

Package last updated on 13 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts