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

signup-info-prompt
Eugen Rochko 2017-07-28 04:36:42 +02:00 committed by GitHub
parent e54cc15cbd
commit 6270f9ce34
1 changed files with 2 additions and 0 deletions

View File

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