Chrome 开发工具如何显示 cookie
How Chrome dev tools shows cookies
当我打开 Chrome 开发工具的资源面板时,我看到在许多域中设置了大量 cookie。我理解第一方和第三方 cookie 之间的定义区别,但我仍然理解它的含义。
Chrome 如何显示第一方 cookie 与第三方 cookie?例如,当我访问 Vice.com 时,我在左侧栏中看到许多域(www.vice.com、platform.tumblr.com 等);如果我在左侧栏中 select www.vice.com,我会看到更多域(.google.com、.ads.pubmatic.com、.scorecardresearch.com 等)。
我该如何解读?
如果我的解释正确,我相信右边的值显示了与您在左边选择的域相关的所有 cookie。在本例中,您选择了蓝色的 www.vice.com。下面列出的其他域是在 vice.com 上找到的所有 cookie 的源域(这就是为什么您会在右侧看到与左侧相似的域名)。
如果您单击左栏中的其他域,您将找到该特定域在 vice.com 上的所有 cookie。
希望对您有所帮助!
我相信@matt 的评论更正确地回答了它:
I did a little more research and found this page:
developer.mozilla.org/en-US/docs/Tools/Storage_Inspector It's about
mozilla developer tools but is still the same concept. Look at the
information near the top of the page. It seems that you are correct.
The listing on the left are iframes and everything listed to the right
are the cookies held inside that iframe. – Matt 18 hours ago
Chrome DevTools documentation 提供了更多相关信息(引自本页的先前版本):
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.
当我打开 Chrome 开发工具的资源面板时,我看到在许多域中设置了大量 cookie。我理解第一方和第三方 cookie 之间的定义区别,但我仍然理解它的含义。
Chrome 如何显示第一方 cookie 与第三方 cookie?例如,当我访问 Vice.com 时,我在左侧栏中看到许多域(www.vice.com、platform.tumblr.com 等);如果我在左侧栏中 select www.vice.com,我会看到更多域(.google.com、.ads.pubmatic.com、.scorecardresearch.com 等)。
我该如何解读?
如果我的解释正确,我相信右边的值显示了与您在左边选择的域相关的所有 cookie。在本例中,您选择了蓝色的 www.vice.com。下面列出的其他域是在 vice.com 上找到的所有 cookie 的源域(这就是为什么您会在右侧看到与左侧相似的域名)。
如果您单击左栏中的其他域,您将找到该特定域在 vice.com 上的所有 cookie。
希望对您有所帮助!
我相信@matt 的评论更正确地回答了它:
I did a little more research and found this page: developer.mozilla.org/en-US/docs/Tools/Storage_Inspector It's about mozilla developer tools but is still the same concept. Look at the information near the top of the page. It seems that you are correct. The listing on the left are iframes and everything listed to the right are the cookies held inside that iframe. – Matt 18 hours ago
Chrome DevTools documentation 提供了更多相关信息(引自本页的先前版本):
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.