Using the Same-Site Cookie Attribute to Prevent CSRF Attacks This article looks into the details of how the Same-Site cookie attribute works and how it can be used to help prevent malicious cross-site request forgery (CSRF) attacks.