[英]Does it make sense for server to return Authorization header
I will admit I am not a very good backend developer but I was doing some research about the Authorization
header. 我承认我不是一个很好的后端开发人员,但是我在做一些关于
Authorization
标头的研究。 It seems pretty straight-forward and even packages like https://github.com/jshttp/basic-auth I understand. 我似乎很直率甚至是像https://github.com/jshttp/basic-auth之类的软件包。
In our Spring application though, we are returning the header Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
. 不过,在我们的Spring应用程序中,我们将返回标头
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
。 Does this make sense to do this? 这样做有意义吗? The Client wouldn't care about this correct?
客户会不在乎这个正确吗?
No, it doesn't make sense. 不,这没有道理。 Since the client knows it already (since it sent it in the first place) sending it back is a waste of time.
由于客户已经知道了它(因为它首先发送了它),因此将其发送回是浪费时间。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.