cancel
Showing results for 
Search instead for 
Did you mean: 

REST API - node

YanFeiHu
Confirmed Champ
Confirmed Champ

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.

    

image

Image 2:

image

1 REPLY 1

openpj
Elite Collaborator
Elite Collaborator

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