Enable use_cookies_with_metadata option (#16087)

This commit is contained in:
Michael Kohl 2022-01-13 22:27:19 +07:00 committed by GitHub
parent 813222a414
commit 681ab3aac2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,10 +39,6 @@ module PracticalDeveloper
# Therefore we disable "per_form_csrf_tokens" for the time being.
config.action_controller.per_form_csrf_tokens = false
## Rails 6.0
# Enables writing cookies with the purpose metadata embedded.
config.action_dispatch.use_cookies_with_metadata = false
## Rails 6.1
# This replaces the old config.active_support.use_sha1_digests from Rails 5.2
config.active_support.hash_digest_class = ::Digest::MD5 # New default is ::Digest::SHA1