]> source.dussan.org Git - redmine.git/commitdiff
Merged r21009 from trunk to 4.2-stable (#35226).
authorGo MAEDA <maeda@farend.jp>
Wed, 16 Jun 2021 14:15:52 +0000 (14:15 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 16 Jun 2021 14:15:52 +0000 (14:15 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/4.2-stable@21037 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/account_controller.rb
config/application.rb
public/javascripts/application.js

index c6d13d4176901aea93e711a3b0f5aba5ed294698..e1b3d4f2b2c372704492b12b46fcad79b8604fac 100644 (file)
@@ -404,6 +404,7 @@ class AccountController < ApplicationController
       :value => token,
       :expires => 1.year.from_now,
       :path => (Redmine::Configuration['autologin_cookie_path'] || RedmineApp::Application.config.relative_url_root || '/'),
+      :same_site => :lax,
       :secure => secure,
       :httponly => true
     }
index 72546d180f8d1190608ae9619b5888f271800ed9..1905b451c073f3457ae8105852e7fb8dce90b666 100644 (file)
@@ -80,7 +80,8 @@ module RedmineApp
     config.session_store(
       :cookie_store,
       :key => '_redmine_session',
-      :path => config.relative_url_root || '/'
+      :path => config.relative_url_root || '/',
+      :same_site => :lax
     )
 
     if File.exists?(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
index 1bc228236a015b3cdeb5e6d7332e3a89a020e92f..7feb3a2937567ab56b7cce98eb5c4a5fae3f0493 100644 (file)
@@ -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'
   });
 });