In console log getting the bellow message Reason: CORS header ‘Access-Control-Allow-Origin’ missing So I checked few stack overflow solution but not able to resolve some one can help me to resolve it.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(document).ready(function ()
{
var save_temp = {
"token": "e2c420d928d4bf8ce0ff2ec19b371514"
};
var comment_data = JSON.stringify(save_temp);
//alert(comment_data);
var request = $.ajax({
url: "http://vyhub.com/irmtapi/dailyreport/checkReport",
type: "POST",
data:comment_data,
contentType: "application/json; charset=utf-8",
dataType: 'json',
});
request.done(function(msg)
{
// $("#log").html( msg );
alert(msg)
});
request.fail(function(jqXHR, textStatus) {
alert( "Request failed: " + textStatus );
});
});
</script>