Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Authorization should be passed not AuthorizationReactND #14

Open
osama-alrefai opened this issue Sep 12, 2017 · 0 comments
Open

Authorization should be passed not AuthorizationReactND #14

osama-alrefai opened this issue Sep 12, 2017 · 0 comments

Comments

@osama-alrefai
Copy link

in server.js, it says

app.use((req, res, next) => {
  const token = req.get('Authorization')

  if (token) {
    req.token = token
    next()
  } else {
    res.status(403).send({
      error: 'Please provide an Authorization header to identify yourself (can be whatever you want)'
    })
  }
})

note: Authorization is required, not as per documentation AuthorizationReactND

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant