Node.js 401 loopback when it receives data?

I have a Todo model, here access:
"relations": {
 "person": {
 "type": "'s belongsto",
 "model": "Person",
 "foreignKey": "personId"
}
},
 "acls": [
{
 "accessType": "*",
 "principalType": "ROLE",
 "principalId": "$everyone",
 "permission": "DENY"
},

{
 "accessType": "*",
 "principalType": "ROLE",
 "principalId": "$owner",
 "permission": "ALLOW"
}
 ],


And the Person model which svyazani Todo:

"relations": {
 "todos": {
 "type": "hasMany",
 "model": "Todo",
 "foreignKey": "personId"
}
 }


When I send a request with a token for GET /todos I get 401 when sushestvuyet person.
If anyone knows what it is , I will be glad for the answer
Thank you
July 8th 19 at 11:28
1 answer
July 8th 19 at 11:30
http status 401

and in General, self-respecting web developer should know http statuses as the multiplication table
"When I send a request with a token for GET /todos I get 401 when sushestvuyet person."
I know what it means 401 status - Timothy32 commented on July 8th 19 at 11:33
well send him the authorization...
well, or fix the question to make it clear what we do... vangovat here there is no obligation - geovanni_Hegmann commented on July 8th 19 at 11:36

Find more questions by tags Node.js