I encountered an error while working with AngularJS.
The error message reads: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at ... (Reason: CORS header 'Access-Control-Allow-Origin' missing).
Below is a snippet of my code:
$http({
method: 'GET',
url:"https://logis../oms/rest/TMS/../listTenders/1.0",
headers: { 'Authorization': 'Basic Q2FycmllckFUcmFuc01ncjpwYXNzd29yZA=='}
}).success(function (response) {
console.log("response--"+response);
resolve(response);
}).error(function (error) {
console.log("error123--"+error)
reject(error);
});
I am making a GET request in AngularJs and encountering the above-mentioned error. Can anyone assist me in identifying if anything is missing on the client-side or if any configurations need to be adjusted on the server side? The server-side scripting is done in Java. Your help would be greatly appreciated. Thank you.