Table of Contents

HTTP - X-Requested-With Header

About

The X-Requested-With is a request header that a user agent may use to store information about the creation of the request such as client information, method used.

Note that the X-Requested-With cannot be added to a cross domain request without the consent of the server via CORS.

Syntax

Example with XHR.

X-Requested-With:XMLHttpRequest