authorized API

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
max1234
Posts: 2
Joined: 19 Oct 2015 15:25

authorized API

Post 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
Post Reply