i am trying to call a page using javascript but insted of getting response i get the following error
$.ajax({
type: "POST",
url: "https://account.domain.com/testimonial/user_message",
success:function(res){
alert(res);
}
});
when i call this code i am getting an error in console
XMLHttpRequest cannot load https://account.domin.com/admin/testimonial/user_message. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://domain.com' is therefore not allowed access.
if i put this url into the browser then it show me the result but if i call this using jquery then why i am getting this error and how can i call this url