logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 6270f9ce340ba8e120f743ff9bf1d76224871ca1
parent: e54cc15cbd0b21c32acfa223e57f24667b158f48
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Fri, 28 Jul 2017 04:36:42 +0200

Fix #3189 - Share CSRF secret between main app and Sidekiq Web (#4383)


Diffstat:

Mconfig/routes.rb2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/config/routes.rb b/config/routes.rb @@ -3,6 +3,8 @@ require 'sidekiq/web' require 'sidekiq-scheduler/web' +Sidekiq::Web.set :session_secret, Rails.application.secrets[:secret_key_base] + Rails.application.routes.draw do mount LetterOpenerWeb::Engine, at: 'letter_opener' if Rails.env.development?