Defect #35226 » 35226-v2.patch
| app/controllers/account_controller.rb | ||
|---|---|---|
|
: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
|
||
|
}
|
||
| config/application.rb | ||
|---|---|---|
|
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'))
|
||
| public/javascripts/application.js | ||
|---|---|---|
|
$('#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'
|
||
|
});
|
||
|
});
|
||
- « Previous
- 1
- 2
- Next »