angular - 如何解决来自 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
。
解决方案
推荐阅读
- javascript - 调试三角形打印中的空白空间 - JS
- ruby-on-rails - Rails:帮助方法在控制台和应用程序之间表现不同
- java - 从 2D ArrayList 中删除元素
- node.js - Async/Await Mongoose 并不总是正确运行
- laravel - Laravel 5.4,文件上传超时
- c - 在ncurses中将一个窗口分配给另一个窗口
- php - array_marge is very slow
- multithreading - 如果消息队列已关闭,如何在事件驱动微服务中进行处理?
- reactjs - bundle.js:2 Uncaught ReferenceError: require is not defined at bundle.js:2
- python - How can I exclude the list of web-pages from google-search results?