发布于 4年前

Chrome 64:Error parsing header X-XSS-Protection: 1; mode=block; report=xxx

Chrome升级到版本64.0.3282.186(正式版本)(64 位)后,访问使用了X-XSS-Protection的网站,在控制台出现报错:

Error parsing header X-XSS-Protection: 1; mode=block; report=https://xxx.com/report: insecure reporting URL for secure page at character position 22. The default protections will be applied.

此问题在访问youtube.com(不要问怎么访问youtube)也出现。

错误原因:这是X-XSS-Protection里report的值不是当前访问的域名,Chrome就会报此错误。

这是一个bug,已在chrome 66.0.3336.0修复。

参考:
https://bugs.chromium.org/p/chromium/issues/detail?id=807304
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection

©2020 edoou.com   京ICP备16001874号-3