如何解决来自 Google Chrome 的此警告? Cookie... `SameSite=None` 但没有 `Secure`

Posted

技术标签:

【中文标题】如何解决来自 Google Chrome 的此警告? Cookie... `SameSite=None` 但没有 `Secure`【英文标题】:How can I fix this warning from Google Chrome? Cookie... `SameSite=None` but without `Secure` 【发布时间】:2020-02-02 04:33:07 【问题描述】:

这段代码 this.afAuth.auth.signInWithPopup(new auth.GoogleAuthProvider()) 正在 Chrome 上生成此警告:

与 http://google.com/ 的资源关联的 cookie 设置为 SameSite=None,但没有 Secure。未来版本的 Chrome 将仅在使用 SameSite=NoneSecure 设置的情况下提供带有跨站点请求的 cookie。

【问题讨论】:

This entry 可能会有所帮助 你有什么解决办法吗? 【参考方案1】:

在How to fix "set SameSite cookie to none" warning? Chrome Extension找到了一个anwser

但它认为这是由于旧的 Google Analytics 设置造成的。

【讨论】:

通常不鼓励仅链接的答案。您能否将网页中的重要信息添加到您的答案中?

以上是关于如何解决来自 Google Chrome 的此警告? Cookie... `SameSite=None` 但没有 `Secure`的主要内容,如果未能解决你的问题,请参考以下文章

如何解决颤振包 google_mobile_ads 中的此错误

当我在 google chrome /students/student_name 的搜索栏中键入此内容时,我想获取数组列表的此名称

为客户解决 Chrome 中的“不常用下载”警告[关闭]

如何解决 WebGL Unity 游戏中的此错误?

如何解决“flutter build apk”上的此错误

未授予通话和短信权限,但仍收到来自 google play 的警告