From e3e524f406a2c6b92d0ff3e44b750a31764cb64f Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Fri, 15 May 2020 21:24:24 +0200 Subject: [PATCH] Set cookies with samesite=lax attribute --- js/src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/utils.js b/js/src/utils.js index 7cf527a..591d3e6 100644 --- a/js/src/utils.js +++ b/js/src/utils.js @@ -32,7 +32,7 @@ export default class uUtils { date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); expires = `; expires=${date.toUTCString()}`; } - document.cookie = `ulogger_${name}=${value}${expires}; path=/`; + document.cookie = `ulogger_${name}=${value}${expires}; path=/; samesite=lax`; } /**