Skip to content

Commit 8b3cd60

Browse files
author
Krishna Rajendran
authored
Explicitly set the SameSite attribute on the cookie (amplitude#245)
1 parent 495f80f commit 8b3cd60

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/base-cookie.js

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const set = (name, value, opts) => {
3939
if (opts.secure) {
4040
str += '; Secure';
4141
}
42+
str += '; SameSite=Lax';
4243
document.cookie = str;
4344
};
4445

0 commit comments

Comments
 (0)