Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is Chrome coloring my cookie red when I set it from the inspector?

Tags:

If I open the inspector for a page, go to the Application tab, scroll down to Cookies in the left-hand list, expand it, and click my domain, I get a list of cookies set on the domain. I can add new entries to the list and edit existing ones, setting and updating cookies stored for that domain.

After upgrading to Chrome 73 if I try and set a cookie the browser colors the text red and does not set or save the cookie. How do I continue setting cookies in Chrome 73?

like image 264
ldrg Avatar asked Mar 26 '19 18:03

ldrg


People also ask

How do I know if my cookies are inspect?

Right-click and click on Inspect Element to open the developer console. Go to the Storage tab. Expand the Cookies menu and select the website to check cookies. On the right side of the console, you will see the cookies that have been set on the website.

Can you manually add cookies to Chrome?

There is a Chrome plug-in called Edit This Cookie. It adds a menu to your browser toolbar which allows you to add, edit, and delete cookies.

What is a partitioned cookie?

# What is CHIPS A partitioned third-party cookie is tied to the top-level site where it's initially set and cannot be accessed from elsewhere. The aim is to allow cookies to be set by a third-party service, but only read within the context of the top-level site where they were initially set.


2 Answers

Solved it by

  1. search in chrome settings for flags by entering in the url field chrome://flags
  2. search Partitioned cookies and set it to enable
  3. Restart chrome (might need to refresh the page after the restart and it works like before did)
like image 121
The Vojtisek Avatar answered Sep 18 '22 19:09

The Vojtisek


In Chrome 73 and later cookies must have a value for the Expires/Max-Age column or they will not be set. Double-click that field and enter 2100 to set a Expires time of 2100-01-01T00:00:00.000Z for your cookie.

like image 22
ldrg Avatar answered Sep 20 '22 19:09

ldrg