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, 2015 at 18:11

2 Answers 2


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, 2017 at 19:59
  • How to edit httpOnly cookies?
    – Artem
    Sep 28, 2017 at 9:58
  • 22
    in dev console do document.cookie = "key=value"; then refresh the cookies.
    – Adam Johns
    Dec 15, 2017 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, 2021 at 18:20
  • @oluies I rolled back your edit as it replaced a deep link with a link just pointing at the TOC. Is the inspector guide part of the new manual, can it be linked to directly?
    – nohillside
    Mar 28, 2023 at 7:58

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.

  • 3
    SafariCookieCutter has been discontinued Jan 29, 2016 at 17:40

You must log in to answer this question.

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