Page 1 of 1

authorized API

Posted: 07 Apr 2016 01:51
by max1234
Hi guys,
I have problem with javascript Basic Authorization. I try send request with Basic user+password(encode to base64), but response is 401. I try to same in postMan and it works fine.
I using AngularJS.

Set my header in controller

Code: Select all

$http.defaults.headers.common['Authorization'] = 'Basic base64Code';
Thanks