Chrome控制台SameSite Cookie属性警告 [英] Chrome Console SameSite Cookie Attribute Warning
问题描述
还有其他人收到此Chrome控制台警告吗?
Is anybody else getting this Chrome console warning?
设置了一个与跨站点资源关联的cookie 没有
SameSite
属性. Chrome的未来版本只会 如果设置了跨站点请求,则交付cookieSameSite=None
和Secure
.您可以在开发人员中查看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 withSameSite=None
andSecure
. 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屋!