How to view cookies in safari 10?

旧巷老猫 提交于 2021-01-27 18:17:17

问题


These are the approaches I have tried:

  1. View HTTP headers in Safari 10, but the cookies is not showed there
  2. I can find Cookies section under Storage Tab, but the Cookies are displayed in a table.

I would like to view the Cookies in a string rather than a table, is there any way except using another browser?


回答1:


It will require a little fiddling, but there is a Python script here http://www.securitylearn.net/2012/10/27/cookies-binarycookies-reader/ that can dump the Binary Cookie format (located in ~/Library/Cookies/).




回答2:


Go to the Console* tab. Type

document.cookie

which shows all cookies for this location.


*: to access the console, (credit @Geoff Crompton)

if [you] have the developer menu enabled, [you] can go to the Develop menu, choose Show Web Inspector, and in the bottom of the new window type document.cookie to see the cookies for the current website



来源:https://stackoverflow.com/questions/43250921/how-to-view-cookies-in-safari-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!