Last active
April 8, 2018 23:58
-
-
Save mctaylorpants/e9eb886f2c31342f3dfdcbc3f6bb0b20 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# actionpack/lib/action_controller/metal/request_forgery_protection.rb | |
def real_csrf_token(session) # :doc: | |
session[:_csrf_token] ||= SecureRandom.base64(AUTHENTICITY_TOKEN_LENGTH) | |
Base64.strict_decode64(session[:_csrf_token]) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Real_csrt_token