I need to get all the cookies from the browser

前端 未结 9 1301
没有蜡笔的小新
没有蜡笔的小新 2020-12-04 09:52

I need to get all the cookies stored in my browser using JavaScript. How can it be done?

9条回答
  •  春和景丽
    2020-12-04 10:31

    Since the title didn't specify that it has to be programmatic I'll assume that it was a genuine debugging/privacy management issue and solution is browser dependent and requires a browser with built in detailed cookie management toll and/or a debugging module or a plug-in/extension. I'm going to list one and ask other people to write up on browsers they know in detail and please be precise with versions.

    Chromium, Iron build (SRWare Iron 4.0.280)

    The wrench(tool) menu: Options / Under The Hood / [Show cookies and website permissions] For related domains/sites type the suffix into the search box (like .foo.tv). Caveat: when you have a node (site or cookie) click-highlighted only use [Remove] to kill specific subtrees. Using [Remove All] will still delete cookies for all sites selected by search and waste your debugging session.

提交回复
热议问题