Is it possible to send custom headers with an XHR (“Ajax” request)?

前端 未结 1 1505
太阳男子
太阳男子 2020-12-20 16:28

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 XMLHttpRequ

相关标签:
1条回答
  • 2020-12-20 16:59

    Yes, see "The setRequestHeader() method" of the current XMLHttpRequest working draft of 6 December 2012.

    0 讨论(0)
提交回复
热议问题