I've encountered an issue with my code that involves requesting an external URL to check for a successful status:
$http.get($scope.linkAnswer).then(function () {
linkStatus = true;
console.log("veikia");
}, function () {
linkStatus = false;
console.log("neveikia");
});
Unfortunately, I'm receiving this error when making the request:
XMLHttpRequest cannot load REQUESTED URL. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'MY LOCALHOST URL' is therefore not allowed access.
Any insights on what could be causing this issue?