So for Google Chrome and Opera, cookies have SameSite
attribute, which can have one of two values: strict
or lax
.
One of a few differences between those is that SameSite=strict
will prevent a cookie from being sent when we click a link to another domain.
I know that SameSite
is not W3C recommendation yet, but what is potential benefit of this behavior? I find it rather annoying, because the cookie is sent anyway when we refresh or click another link on the current domain. That leads to rather weird user experience - for example: we are logged out, then we click some domestic link or refresh and we are suddenly authenticated.
I'm aware that it's not designed for the greatest user experience, but rather for security. But what are we actually winning here in terms of security?