'How set cookies in dev tools in Google Chrome 98 version?
after update google chrome up to 98 version, I can't set cookies
it looks like a red stripe and after the refresh, it disappears. Even you fill all fields, it disappears.
Maybe any know how it disables the feature? This feature describes in their blog, but I can't find how to fix it
Solution 1:[1]
Based on the comment in this diff - https://chromium.googlesource.com/devtools/devtools-frontend/+/20ed4f2bd282537f404af9d45df1333d5aeb21f5%5E%21/#F0, I felt this has something to do with Partitioned cookies. So I opened chrome://flags and set the value of "Partitioned Cookies" to Enabled" and relaunched the browser. After that the red row did not appear and I am able to set the cookies like before.
Solution 2:[2]
A workaround we are using for now is using the console to run document.cookie='key=value'.
It's not nearly as robust but it gets the cookie in and we can edit the other fields afterwards.
Solution 3:[3]
Using a plugin like 'EditThisCookie' also works for now.

Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Venky Viswanath |
| Solution 2 | Rangoric |
| Solution 3 | Peter Csala |
