google-chrome - 为什么 chrome 在资源选项卡中显示所有域的 cookie

标签 google-chrome google-chrome-devtools

我打开了 Chrome 的 Web 开发人员工具 (F12) 并导航到 Resources标签。然后我选择了 Cookies选项卡并单击特定于我的域的 cookie inreado.git.local .但是,该 View 显示了除我之外的域的 cookie,例如 google.com和其他人(见附图)enter image description here .为什么这样?我希望只有特定于我的域的 cookie 出现在 View 中。

最佳答案

如 Chrome DevTools documentation 中所述,那是因为这些 cookie 是在 iframe 中设置的:

Cookies are listed by domain. This includes the main document as well as all nested frames. Selecting one of these “frame groups” displays all cookies, for all resources, for all frames in that group. There are two consequences of this grouping to be aware of:

  • Cookies from different domains may appear in the same frame group.
  • The same cookie may appear in several frame groups.

关于google-chrome - 为什么 chrome 在资源选项卡中显示所有域的 cookie,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21501177/

相关文章:

selenium - 为什么 XPath 在 Chrome84 中不高亮黄色标记?

android - 在 Mobile Chrome 上为本地文件启用地理定位

css - 仅适用于 Chrome 的 AutoCompleteExtender 定位

google-chrome - Chrome 开发工具中的移动设备模拟器中缺少鼠标,如何找回?

css - 为什么 Firefox/Chrome 响应式仿真和智能手机之间存在差异?

google-chrome - (idle)在Google Chrome DevTools Profiler中是什么意思?

apache - Mod_Spdy 未在 Centos 上运行

html - 在 chrome 中调试 http 请求

google-chrome-devtools - Chrome开发者工具覆盖范围: how to save or capture code used code?

google-chrome-extension - 如何在不实际打开 DevTools 窗口的情况下访问 DevTools API?