summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-05-27 08:31:15 +0000
committerGo MAEDA <maeda@farend.jp>2021-05-27 08:31:15 +0000
commit099b160d1183aea02612906530a4fae93c72d557 (patch)
tree87d344eed24e119f271d0345f53762a4f7020292 /public
parent8b8a1194ff84fd2ad01e616a3b296ed158d8d23c (diff)
downloadredmine-099b160d1183aea02612906530a4fae93c72d557.tar.gz
redmine-099b160d1183aea02612906530a4fae93c72d557.zip
Add SameSite=Lax to cookies to fix warnings in web browsers (#35226).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@21009 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r--public/javascripts/application.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index 1bc228236..7feb3a293 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -1033,7 +1033,7 @@ $(document).ready(function(){
$('#history .tabs').on('click', 'a', function(e){
var tab = $(e.target).attr('id').replace('tab-','');
- document.cookie = 'history_last_tab=' + tab
+ document.cookie = 'history_last_tab=' + tab + '; SameSite=Lax'
});
});