I have developed an asp.net webApi and successfully published it on somee.com. When I access the link xxxx.somee.com/api/xxxx, everything works fine. However, when I try to call it in Angularjs, it does not work.
$http.get('http://xxxxxx.somee.com/api')
.then(function(response) {
console.log(response);
});
Upon making the call, I encounter the following error:
XMLHttpRequest cannot load xxxx.somee.com/api/xxxx. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
I am seeking a solution to this issue. Thank you for your assistance.