Skip to content

Commit 7606bb9

Browse files
xitudestuyam
authored andcommitted
Update cookie.js (#62)
Added support for [SameSite](https://www.owasp.org/index.php/SameSite) OWASP standard https://caniuse.com/#search=samesite
1 parent 158a47e commit 7606bb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cookie.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var Cookie = {
1212
date.setTime(date.getTime()+(minutes*60*1000));
1313
expires = "; expires="+date.toGMTString();
1414
}
15-
document.cookie = this.prefix() + name + "=" + value + expires + "; path=" + path;
15+
document.cookie = this.prefix() + name + "=" + value + expires + "; path=" + path +"; SameSite=Lax";
1616
},
1717

1818
get(name) {

0 commit comments

Comments
 (0)