summaryrefslogtreecommitdiffstats
path: root/config/application.rb
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 /config/application.rb
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 'config/application.rb')
-rw-r--r--config/application.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/application.rb b/config/application.rb
index dc8d5f89d..fc6e6a33f 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -79,7 +79,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'))