Skip to content

Commit

Permalink
Fix old CSRF token being used after upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDaugherty committed Sep 24, 2020
1 parent bb31639 commit da0e0d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/better_errors/middleware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def self.allow_ip!(addr)
allow_ip! "127.0.0.0/8"
allow_ip! "::1/128" rescue nil # windows ruby doesn't have ipv6 support

CSRF_TOKEN_COOKIE_NAME = 'BetterErrors-CSRF-Token'
CSRF_TOKEN_COOKIE_NAME = "BetterErrors-#{VERSION}-CSRF-Token"

# A new instance of BetterErrors::Middleware
#
Expand Down

0 comments on commit da0e0d9

Please sign in to comment.