Skip to content

Commit

Permalink
Feat(routes/users): all custome header to be read
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhannedNoman committed Oct 14, 2020
1 parent 968c1c5 commit 41527e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routes/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ router.post('/', async (req, res) => {

res
.header('x-auth-token', token)
.header('access-control-expose-headers', 'x-auth-token')
.send(_.pick(user, ['_id', 'name', 'email']));
});

Expand Down

0 comments on commit 41527e1

Please sign in to comment.