I could not edit value of cookies.

How can I edit my cookies in Safari Web Inspector?

  • The first senate implies you tried - what did you try ?and what sort of edit are you trying to do?
    – mmmmmm
    Jan 23 '15 at 18:11

Entries in this table are read-only; if you want to edit a cookie’s value, you need to do so with the document.cookie object in JavaScript (you can use the Quick Console at the bottom of the content browser to modify the cookie and see the results update in real time). Pressing the Delete key while a cookie is selected deletes the cookie.

please reference Safari Web Inspector Guide

  • What if you want to test for local mobile development? Then this doesn't work.
    – Alex Cory
    Apr 3 '17 at 19:59
  • How to edit httpOnly cookies?
    – Artem
    Sep 28 '17 at 9:58
  • 22
    in dev console do document.cookie = "key=value"; then refresh the cookies.
    – Adam Johns
    Dec 15 '17 at 23:24
  • To adjust the expiry date of an existing cookie I used this in dev console to give it a far future date: document.cookie = "VerifiedClick=clicked; path=/; expires=Tue, 19 Jan 2038 03:14:07 GMT"
    – Jay
    Jul 30 '21 at 18:20

Unfortunately you can't edit cookies in the default browser safari in Mac. Try using third-party plugins like safaricookiecutter or use firefox web browser and use firebug.

  • 2
    SafariCookieCutter has been discontinued Jan 29 '16 at 17:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .