我在Web项目中找到以下代码:
const customHeaders = new HttpHeaders({
'clientId': env.apiKey,
'Authorization': `Bearer ${authorization}`,
'Authentication': `Bearer ${authentication}`
});
return this.http.get<UserInfo>(`${env.baseApi}/login`, { headers: customHeaders });
我知道标题'
Authorization
'在Spring Security中,但标题有什么区别'
Authentication
'?
为了获得最佳实践,我们是否应该将两者都放在一起?