I'm trying to make following http request using angularjs $http service
$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 up and runing and I'm getting following firebug console error

So what I'm doing wrong here in sending http request?