Solve the new version of Google chrome browser cookie cross-domain, cookie invalidation problem

Solve the new version of Google chrome browser cookie cross-domain, cookie invalidation problem

Recently, when the author was debugging locally, I found that I could not log in even if I was dead or alive. Then I checked the network and found that there was a yellow exclamation mark behind the requested cookie. The hint given was that the cookie could not be set. I was confused at the time, and then many Baidu found a solution.
Here Insert a picture description
Put the mouse on the exclamation mark to give a prompt this Set-Cookie didn't specify... See the picture for details
Insert a picture here to describe
the reason why the cookie fails.
Those who are interested can understand the reason, and execute the following settings.

chrome://flags/#same-site-by-default-cookies

chrome://flags/#cookies-without-same-site-must-be-secure

Set these two items to Disabled and restart the browser
 

Guess you like

Origin blog.csdn.net/mawei7510/article/details/116598474