为什么 chrome 扩展清单 v3 向主机发送请求而不使用 cookie?

问题描述

我向 host_pernisions 和 content_security_policy.extension_pages 添加了主机:"default-src 'self'; connect-src 'self' https://example.org/;" 我尝试使用 mode: corscredentials: include 发送请求,但没有帮助。 在开发者工具中,我们可以启用显示过滤掉的请求 cookie,我们将看到所有丢弃的 cookie:

screen

解决方法

解决了,你需要将SameSite cookie设置为None