dojo / core

:rocket: Dojo 2 - language helpers and utilities.
http://dojo.io
Other
213 stars 58 forks source link

Adding a flag to disable automatic inclusion of x-requested-with #350

Closed rorticus closed 7 years ago

rorticus commented 7 years ago

Type: feature

The following has been addressed in the PR:

Description:

Adding an XHR request option, includeRequestedWith that defaults to true, that can be used to disable the automatic inclusion of the X-Requested-With.

Example,

xhr('some-url', { includeRequestedWith: false }).then(...)

Resolves #328