Chrome控制台SameSite Cookie属性警告 [英] Chrome Console SameSite Cookie Attribute Warning

查看:411
本文介绍了Chrome控制台SameSite Cookie属性警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

还有其他人收到此Chrome控制台警告吗?

Is anybody else getting this Chrome console warning?

设置了一个与跨站点资源关联的cookie 没有SameSite属性. Chrome的未来版本只会 如果设置了跨站点请求,则交付cookie SameSite=NoneSecure.您可以在开发人员中查看Cookie 工具在应用程序">存储">"Cookies"下,并在以下位置查看更多详细信息 和.

A cookie associated with a cross-site resource at was set without the SameSite attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with SameSite=None and Secure. You can review cookies in developer tools under Application>Storage>Cookies and see more details at and .

在Chrome Flags chrome://flags/中,我尝试同时禁用这两个功能:

In Chrome Flags chrome://flags/ I've tried disabling both:

  • SameSite默认为cookie

  • SameSite by default cookies

没有SameSite的Cookie必须安全

Cookies without SameSite must be secure

警告不会消失.

推荐答案

您可以通过禁用chrome://flags Cookie弃用消息来禁用它们.

You can disable them through chrome://flags Cookie Deprecation messages disabled.

这篇关于Chrome控制台SameSite Cookie属性警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆