$.ajax({ url: 'http://test.aegi.com/rest/social/update/@ViewBag.orgId?access_token=6fWV564u7rATh8=', type: 'POST', contentType: 'application/json', data: [{ "message": "It's party time", "messageType": "NEW", "gmtTimeDate": "2014-12-21 23:59:59", "soAccts": [{ "accountId": "74470431", "soAccountType": "FBPAGE" }] }], success: function (data) { console.log(data); }, error: function (error) { console.log(error); } }); When i'm trying to send this request AJAX i'm getting an error : No 'Access-Control-Allow-Origin' header is present.
But on dhc chrome extension when i put the same above data in body section and send the request then i get a success response. Am i doing anything wrong here?