REST API - node

cancel
Showing results for 
Search instead for 
Did you mean: 
YanFeiHu
Active Member II

REST API - node

Hi Team;

     I followed the tutorial as below to developing a simple JavaScript client using the Alfresco REST API.

       'https://community.alfresco.com/docs/DOC-6802-alfresco-one-rest-api-previewing-content'

    When I press the button 'go' , browser return error code 401, please refer the first image as below.

    But the same URL, Username, Password in Postman is OK,  as you see in the second image below.

    Could you please tell me how to solve it? Thanks a lot.

    

401.png

 

Image 2:

postman.png

1 Reply
openpj
Moderator
Moderator

Re: REST API - node

Check your source code, probably your JavaScript snippet is not passing authentication header with credentials.