简体   繁体   English

IE 8-9中带有标头的XMLHttpRequest

[英]XMLHttpRequest in IE 8-9 with header

Is there way to make GET request with headers in IE 8-9? 在IE 8-9中是否可以通过标头进行GET请求? I readed about XDomainRequest, but it don't support headers. 我读了有关XDomainRequest的文章,但它不支持标头。 I can't use jQuery on my project and have to do it using only JavaScript. 我不能在项目上使用jQuery,而只能使用JavaScript。

You cannot add custom headers to the XDR object. 您不能将自定义标头添加到XDR对象。 See this blog post for more information: http://blogs.msdn.com/b/ieinternals/archive/2010/05/13/xdomainrequest-restrictions-limitations-and-workarounds.aspx 有关更多信息,请参见此博客文章: http : //blogs.msdn.com/b/ieinternals/archive/2010/05/13/xdomainrequest-restrictions-limitations-and-workarounds.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM