问题
These are the approaches I have tried:
- View HTTP headers in Safari 10, but the cookies is not showed there
- I can find
Cookiessection underStorageTab, 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
Developmenu, chooseShow Web Inspector, and in the bottom of the new window typedocument.cookieto see the cookies for the current website
来源:https://stackoverflow.com/questions/43250921/how-to-view-cookies-in-safari-10