I've been attempting to send an HTTP request using the AngularJS $http service like this:
$http.get('http://myserver:8080/login?', {
params: {username: "John", password: "Doe" },
headers: {'Authorization': 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='}
}).then(function(response) {
alert('success');
alert(response);
}, function(x) {
alert('err');
});
};
My server is running properly, but I keep encountering this error in the Firebug console: https://i.sstatic.net/0cTpV.jpg
Can anyone help me understand what mistake I might be making in sending this HTTP request?