How set cookies in dev tools in Google Chrome 98 version?

Article Sharif Ahmed

Problem:

I unable to set cookies after updating Google Chrome to version 98. It appears to be a red stripe that vanishes after a refresh. It vanishes even if you fill up all of the fields.

Solution 1:

It seems like it has something to do with Partitioned cookies. To enable partitioned cookies follow the below step.

  • Type chrome://flags on the address bar and hit enter.
  • Search Partitioned Cookies and click on Enable
  • Save and relaunch the browser

After that, the red row vanished, and I was able to set the cookies as usual.


Solution 2:

For the time being, utilize the console to run the document as a workaround. Run document.cookie='key=value'. It's not quite as robust, but it gets the cookie in and allows us to change the other variables later.


Thank you for reading the article. If you have any suggestions please comment below.