-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getting bad http header format erro #48
Comments
Your Authorization header should be 'Bearer ' |
@vmendiratta can we please give some example related to 'Bearer' token ? I also facing the same error, |
Your request should have an Authorization header field. Example: |
thanks 👍 |
My Authorization header is Bearer and I still get the error: GET /books HTTP/1.1 |
can u please give example to Authorization with model roles :admin, super admin and user |
For future travelers: I was getting this error because I had forgotten the audience property in the params when requesting the token. That successfully gave me a token but it failed with this error when I actually tried to use it. |
Why Is it necessary to added this "Bearer" prefix to the token ??? |
{
"statusCode": 400,
"error": "Bad Request",
"message": "Bad HTTP authentication header format"
}
kindly help me to resolve it i am new to hapi
The text was updated successfully, but these errors were encountered: