I used this document : http://docs.openstack.org/developer/swift/cors.html#test-cors-page
Used the below code, sends Option request and get 200 as the response. But the orginal method 'get' doesn't get response. And browser console says 'Access-Control-Allow-Origin' CORS header is not found.
$.ajax({
method: "GET",
url : url,
crossDomain: true,
headers: {
'X-Container-Meta-Access-Control-Allow-Origin' : 'http://127.0.0.1:8080',
'X-Container-Meta-Access-Control-Max-Age' : 10,
'X-Auth-Token' : token
},
contentType : 'application/json; charset=utf-8'
});