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';