$http.defaults.useXDomain
= true;
$http.defaults.headers.put = {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE,
OPTIONS',
'Access-Control-Allow-Headers': 'Content-Type,
X-Requested-With'
};
$http.defaults.headers.post["Content-Type"]
= "application/x-www-form-urlencoded";