The SameSite flag instructs web browsers to send cookies differently depending on the attribute value and how a visitor interacts with the site that set the cookie. This flag is used to help protect against CSRF attacks.
Learn more about cross-site request forgery (CSRF) vulnerabilities.