ElasticSearch.js and Access-Control-Allow-Origin': 'true'

Hello,

I am trying to develop web application and charts using D3.js,require.js and es.js
In this process my ES is running at IP1:port and App server at IP2:port

In my App server i have deployed code and set header to 'Access-Control-Allow-Origin': 'true'
as below which seems to be not working.

var client = elasticsearch.Client({
hosts: [{
host: 'localhost',
port: 9200,
headers: {
'Access-Control-Allow-Origin': 'true'
}
}]
});

In Chrome i have installed CORS plugin that http request renders nice pie chat.
But when i make the same request in IE, it does not work.

So,I am wondering how can my application work on all devices,browsers? If anyone has done let me know. May be i need to deep dive into kibana source code and figure out how it is done.