ScottHamper / Cookies

JavaScript Client-Side Cookie Manipulation Library
The Unlicense
1.77k stars 169 forks source link

Support "Same-Site" cookies #71

Open 1nd opened 7 years ago

1nd commented 7 years ago

This PR makes this library able to support "SameSite" attribute. "SameSite" attribute is used to prevent CSRF attack.

More about same-site cookies: http://www.sjoerdlangkemper.nl/2016/04/14/preventing-csrf-with-samesite-cookie-attribute/