Skip to content

Commit

Permalink
Merge pull request #739 from learningtapestry/fix/session-cookie-secret
Browse files Browse the repository at this point in the history
Add secret option to Rack session cookie initializer
  • Loading branch information
excelsior authored Nov 17, 2024
2 parents dfc0afd + d34e22a commit caa580c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ require File.expand_path('config/environment', __dir__)
require 'rack/cors'
require 'sidekiq/web'

use Rack::Session::Cookie
use Rack::Session::Cookie, key: 'rack.session',
path: '/',
secret: ENV.fetch('SECRET_KEY_BASE')

use Rack::TryStatic, root: 'public', urls: %w[/], try: %w[.html index.html]

use Rack::Cors do
Expand Down

0 comments on commit caa580c

Please sign in to comment.