XDomainRequest does not have a content type when sending a POST request

I am working on several cross-domain ajax requests. I use XDomainRequest to send requests in IE8 and IE9. It currently works well on Get requests, but not on mail requests. When I use Fiddle to capture requests, I find that there is no Content-Type header in the Post request. Does anyone know about this?

+4
source share
1 answer

Unfortunately, it looks like they squinted and left him. I have the same problem.

According to this , there is no way to set the Content-Type header, and I myself have not found a way. You will see that they actually made this WORSE a later bug fix. Since XDomainRequest is deprecated in IE10 for the correct XMLHttpRequest object using CORS, I doubt there will ever be a fix.

If you have ever found a way to solve a problem, bring it back and let the world understand. This prevents me from using Amazon S3 POST to upload avatars.

+3
source

All Articles