From e0cf3faaa16348ef05c2b68fb55c22bbf3dd7f9e Mon Sep 17 00:00:00 2001 From: Pradhana Indra Date: Mon, 27 Feb 2017 11:07:41 +0700 Subject: [PATCH] Support "Same-Site" cookies About same-site cookies: http://www.sjoerdlangkemper.nl/2016/04/14/preventing-csrf-with-samesite-cookie-attribute/ --- README.md | 11 +++++++++++ src/cookies.js | 23 +++++++++++++++++++++-- tests/spec/cookies-spec.js | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d9c455b..19bbb15 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,8 @@ Sets a cookie in the document. If the cookie does not already exist, it will be | *domain* | A string value of the domain of the cookie | `undefined` | | *expires* | A number (of seconds), a date parsable string, or a `Date` object of when the cookie will expire | `undefined` | | *secure* | A boolean value of whether or not the cookie should only be available over SSL | `false` | +| *sameSite* |

Use "SameSite" cookie attribute?

Value is one of: