如何通过Google Chrome修复此警告?Cookie ...`SameSite = None`,但没有`Secure`

MVD*_*er5 6 google-chrome firebase firebase-authentication angular

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

http://google.com/上的资源相关联的Cookie 设置为,SameSite=None但没有Secure。如果将来的Chrome浏览器版本将cookie设置为SameSite=None和,则仅会提供带有跨站点请求的cookie Secure

Isu*_*ala 0

我知道这是一个较旧的线程,但现在遇到了这个问题。看来我们现在无法在没有安全标志的情况下设置 cookies SameSite=nonehttps://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite