问HN:Chrome发送新的跨浏览器头信息吗?
在查看网络服务器日志时,我注意到 Chrome 134 似乎添加了新的头部信息:
```
"x-browser-channel": "stable",
"x-browser-copyright": "Copyright 2025 Google LLC. All rights reserved.",
"x-browser-validation": "wTKGXmLo+sPWz1JKKbFzUyHly1Q=",
"x-browser-year": "2025"
```
我观察到的所有用户的 x-browser-validation 值都是相同的。有没有人知道这个验证头部的作用是什么?我在网上没有找到任何相关信息,也没有在 Chromium 源代码中进行(相对粗略的)搜索时找到线索。我觉得这组头部信息相当奇怪——为什么浏览器要告诉每个网络服务器它的版权归属以及你所使用的更新通道是什么呢?
查看原文
While digging around in webserver logs I noticed that Chrome 134 seems to have added new headers:<p><pre><code> "x-browser-channel": "stable",
"x-browser-copyright": "Copyright 2025 Google LLC. All rights reserved.",
"x-browser-validation": "wTKGXmLo+sPWz1JKKbFzUyHly1Q=",
"x-browser-year": "2025"
</code></pre>
The x-browser-validation value has been the same for all users I've observed. Does anybody have any idea what the validation header is doing? Haven't found any info online nor with a (rather sloppy) search on the chromium source code. I find this combination of headers rather weird - why should a browser tell each web server who has the copyright on it and what update channel you're on?