I've read a lot of the other questions, but none have helped, so I thought I'd ask about my specific situation.
I'm writing a dashboard using AngularJS to draw data from several of our in house tools (Artifactory, Jenkins etc.). A lot of the various end points require authentication, but I've never done this with AngularJS.
How, using the $http service, can I set the username and password on the requests? I don't think I can set defaults using
$httpProvider.defaults.headers.common
because I'm using multiple APIs with different credentials.
EDIT: As someone mentioned it's similarity to another question, I have followed the instructions from that question, and I just keep getting 'OPTIONS 401 NOT AUTHORISED' in the Chrome console. I suppose the obvious answer to that is that I'm using the wrong password, but I'm not.