Skip to content

Commit

Permalink
Merge pull request sidekiq#2462 from mperham/enable-sessions-in-web-ui
Browse files Browse the repository at this point in the history
Enable sessions so Rack::Protection will work
  • Loading branch information
mperham committed Jul 28, 2015
2 parents f75c91a + 75a3524 commit e7f7ea3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/sidekiq/web.rb
Expand Up @@ -11,6 +11,7 @@ module Sidekiq
class Web < Sinatra::Base
include Sidekiq::Paginator

enable :sessions
use Rack::Protection, :use => :authenticity_token unless ENV['RACK_ENV'] == 'test'

set :root, File.expand_path(File.dirname(__FILE__) + "/../../web")
Expand Down

0 comments on commit e7f7ea3

Please sign in to comment.