victorquinn/Backbone.CrossDomain

IE9 XDomainRequest content-type headers possible?

chrisan opened this issue · 1 comments

I noticed this TODO in the source:

// TODO: XDomainRequest only accepts text/plain Content-Type header

// TODO: XDomainRequest doesn't like other headers

Also this from MS http://blogs.msdn.com/b/ieinternals/archive/2010/05/13/xdomainrequest-restrictions-limitations-and-workarounds.aspx

Curious what you had min mind for a workaround, if anything for this

Umm, I didn't have anything in mind for a workaround.

The second comment there was just a reference to number (3) from the article you linked (I actually linked to the same article in the source).

Since XDomainRequest won't accept any content-type or custom headers, there is no workaround provided for this library as it can't reliably work. The workaround I suppose, if you want to support IE with this library is "don't rely on content-type headers" in your code.