Reputation: 9669
I'm working with an API which needs extra security information sent along with an HTTP request as meta-information in headers. Is it possible to set those in an XMLHttpRequest?
Upvotes: 10
Views: 5733
Reputation: 4460
Yes, see "The setRequestHeader() method" of the current XMLHttpRequest working draft of 6 December 2012.
Upvotes: 15