【发布时间】:2020-07-04 11:16:21
【问题描述】:
我的网站上发生了以下代码,但我尽力无法掌握,所以我有几个问题,请阅读。
category-search-Forum:1 A cookie associated with a cross-site resource at https://www.google.com/ was set without the `SameSite` attribute. It has been blocked, as Chrome now only delivers 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 https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
我看到很多人在堆栈和其他在线位置谈论这个,但没有人解释过如何添加SameSite=None。
1 问题:如何或在何处添加SameSite=None?
看看错误,什么是'安全'
这是否意味着SameSite=Secure?
SameSite=None 和 SameSite=Secure 有什么区别?
【问题讨论】:
-
您的 cookie 应添加
SameSite=None; Secure属性,但具体答案取决于您选择的语言/框架。有关该问题的良好起点,请参阅this wiki page。