Trying to make a post ajax request and getting the following error:
XMLHttpRequest cannot load xxxxx---No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
I'm new to web development I am passing a session id so I need be authenticated. I know its cross domain, but what should I do to fix it.
$.ajax({
type: 'POST',
url:'http://slc.xxx.com:8080/Autocomplete',
data: {"terms":[{"docId":null,"term":"tig"}],"currentTermIndex":0, "sessionID" : "xxx"},
success: function(data){
console.debug('Load was performed.');
}
});