API Testing · Junior · Question 21 of 75
How is a bearer token usually sent?
- 1
Token: <token>in the URL path - 2
Cookie: bearer=<token>in every body - 3
Authorization: Bearer <token>
Show the answer
Correct answer: Authorization: Bearer <token>
Explanation
The Authorization header carries credentials. Tokens in URLs are risky because URLs end up in logs and browser history.