jquery - PHP files not loading on ajax calls (AWS server) -
the following error being thrown in browser console while ajax calls made in aws server
xmlhttprequest cannot load http://<awsdns>/folder/webpage.php. origin http://awsdns not allowed access-control-allow-origin.
here how ajax call being made
$.ajax({ type : 'post', url : gbwebroot+'folder/webpage.php', data : postformdata, datatype: 'json', encode : true, success : function(data) { } });
any idea why error being thrown?
Comments
Post a Comment