I want to do cross domain ajax calls with custom header and cookies . I did it with CORS which works with Chrome, Firefox and IE 10 and 11.
How can I get it to work in IE 9?
Note: I need custom headers and cookies.
If your request are just GET and POST, you can use the XDomainRequest: http://blogs.msdn.com/b/ieinternals/archive/2010/05/13/xdomainrequest-restrictions-limitations-and-workarounds.aspx
There is a plugin for jQuery $.ajax: https://github.com/MoonScript/jQuery-ajaxTransport-XDomainRequest
If you want to use the full CORS capabilities (es: call REST services with a backbone.js fronted, use PUT and DELETE methods) sadly you cannot support IE 9.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.