gitlab-org--gitlab-foss/config/initializers/cookies_serializer.rb

8 lines
307 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2015-08-25 21:42:46 -04:00
# Be sure to restart your server when you modify this file.
Rails.application.config.action_dispatch.use_cookies_with_metadata = true
Rails.application.config.action_dispatch.cookies_serializer =
Gitlab::Utils.to_boolean(ENV['USE_UNSAFE_HYBRID_COOKIES']) ? :hybrid : :json