Use below code for ajax call, It's working fine...
$.ajax({
type: 'GET',
url: 'http://html5rocks-cors.s3-website-us-east-1.amazonaws.com/index.html',
contentType: 'text/plain',
xhrFields: {
withCredentials: false
},
headers: {
},
success: function() {
},
error: function() {
}
});