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?
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?
Share Improve this question asked Jul 24, 2009 at 20:38 Andrey FedorovAndrey Fedorov 9,68922 gold badges69 silver badges99 bronze badges 1- To anyone visiting from Google: setRequestHeader is now part of the spec: developer.mozilla/en-US/docs/Web/API/XMLHttpRequest/… – Sumit Commented Aug 7, 2018 at 4:04
1 Answer
Reset to default 15Yes, see "The setRequestHeader() method" of the current XMLHttpRequest working draft of 6 December 2012.