I have a single page web application delivered from www.example.com. This web applications 
api.example.com
Authorization when sending requests to api.example.com
All this works by handling CORS requests on api.example.com with Chrome (and other recent WebKit-based browsers) using XMLHttpRequest. IE older than version 10 doesn't implement CORS for XMLHttpRequest and instead provides the non-standard XDomainRequest object for cross-domain requests. But XDomainRequest does not implement a way to set HTTP header fields.
So my question is: How can I make cross-domain requests with custom headers without using XDomainRequest or XMLHttpRequest? What is the best practice workaround?
Edit: I have control over all involved servers (*.example.com).
I'm afraid there is no other way but to implement a proxy for this request in your application's server side. An example.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With