google 登录 api (platform.js) 设置没有 SameSite 属性的 cookie?

google sign in api (platform.js) setting cookies without SameSite attribute?

关于使用 google 登录 api [https://apis.google.com/js/platform.js]。我注意到 chrome 中的一些消息(我相信我以前没见过,所以可能是最近的警告)。下面是其中之一(但其他人在同一行上,但具有不同的 google 域)。

A cookie associated with a cross-site resource at http://google.com/ was set without the SameSite attribute.

是否有 fix/change platform.js 的用户可能需要让这些消失?

该警告专门针对 google.com,这意味着 Google 需要修复其 cookie 上的属性。此时警告纯粹是信息性的。这种新的默认行为将在 Chrome 80 版本之前应用,该版本将在 2020 年 2 月稳定。此时它应该不会影响您网站的功能。

您可以在 https://web.dev/samesite-cookies-explained 了解有关更改的更多信息。

您还可以通过访问 https://samesite-sandbox.glitch.me 来测试您的浏览器是否正在应用新的限制。如果结果都是绿色的,那么您的浏览器 正在 应用新的限制并且它将影响提供商未修复 cookie 的站点功能。但是,如果板上有任何橙色或红色,则新限制 未应用 并且警告不应影响任何功能。