【问题标题】:How to fix this "A cookie associated with a cross-site resource at https://facebook.com/" in chrome extension?如何在 chrome 扩展中修复此“与 https://facebook.com/ 上的跨站点资源关联的 cookie”?
【发布时间】:2020-02-18 04:11:43
【问题描述】:

我有一个 Chrome 扩展程序,我在里面放了一个 Facebook 类似框。

所有代码均为原始 Facebook 代码。没有改变任何东西。

最近我遇到了这些错误:

A cookie associated with a cross-site resource at https://facebook.com/
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 
https://www.chromestatus.com/feature/5088147346030592 and 
https://www.chromestatus.com/feature/5633521622188032.

该扩展与服务器无关,我做了一些谷歌搜索,只找到关于 PHP 或 Java 解决方案的主题,这很奇怪。

如何在我的 Chrome 扩展程序中修复它?还是我应该在他们修复任何东西之前放弃 Facebook 的赞?

【问题讨论】:

标签: google-chrome-extension


【解决方案1】:

VM5:1 与 facebook 的跨站点资源关联的 cookie 设置为没有 SameSite 属性。如果设置了SameSite=NoneSecure,Chrome 的未来版本将只提供带有跨站点请求的cookie。您可以在开发人员工具中的 Application>Storage>Cookies 下查看 cookie,并在 herehere 上查看更多详细信息。

【讨论】:

    猜你喜欢
    • 2020-05-08
    • 2020-03-08
    • 1970-01-01
    • 1970-01-01
    • 2020-11-16
    • 2020-12-26
    • 2013-06-05
    • 2023-04-06
    • 2020-06-27
    相关资源
    最近更新 更多