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

问题描述

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

与http://google.com/上的资源相关联的 cookie设置为带SameSite=None但不带Secure. 未来版本的 Chrome 将仅提供带有跨站点请求的 cookie,前提是它们使用SameSite=None和设置Secure

标签: angularfirebasegoogle-chromefirebase-authentication

解决方案


推荐阅读