例如请求 Header 为: Authorization: Bearer Token 这样多加一个 Bearer 有什么作用吗,仅仅只是约定俗成吗?
例如请求 Header 为: Authorization: Bearer Token 这样多加一个 Bearer 有什么作用吗,仅仅只是约定俗成吗?
|
love2020Oct 12, 2021
1
可以不加。。看自己定义了 ,加 Token JWT 这种都有的
|
|
2
为了区分类别
还有 Digest 和 Basic |
|
Patrick95Oct 12, 2021
3
Why is 'Bearer' required before the token in 'Authorization' header in a HTTP request?
https://security.stackexchange.com/a/120244 |
|
XusuallyOct 12, 2021
4
用的多的还有 Basic 等别的 credentials type
|