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

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

问题描述

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

Is anybody else getting this Chrome console warning?

与跨站点资源关联的 cookie 已设置没有 SameSite 属性.Chrome 的未来版本只会如果设置了跨站点请求,则传递 cookieSameSite=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 Deprecation 消息禁用来禁用它们.

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

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

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