I am trying to deploy a flask+angular app, where flask is hosted on a Digital Ocean ubuntu server.
The api is based on this guide.
In curl I can confirm it works by: curl -u <username>:<passwd> -i -X GET https://<server>
I try to obtain the same in angular using http:
$http.get('https://<server>',
{username: <user>, password: <password>})
.then(function(response){
console.log(response.data});
Results in a 401 UNAUTHORIZED
I hope you can help me here.