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