Setting headers in XDomainRequest or ActiveXObject('Microsoft.XMLHTTP')

后端 未结 1 1015
北海茫月
北海茫月 2020-12-18 19:33

I\'m trying to do something like this (W3 compliant, DOM):

xhr.setRequestHeader( \'X-Requested-With\', \'XMLHttpRequest\' );

For Acti

相关标签:
1条回答
  • 2020-12-18 20:19

    Referring to this post http://blogs.msdn.com/b/ieinternals/archive/2010/05/13/xdomainrequest-restrictions-limitations-and-workarounds.aspx See the point three 3. No custom headers may be added to the request

    You cannot add custom headers to an XDR object. Hope this helps.

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