From b067372f3ee26fe1b657121f0f41883ff4461a06 Mon Sep 17 00:00:00 2001 From: Abhilash V Date: Mon, 21 Mar 2022 08:59:39 +0530 Subject: [PATCH] fixed security vulnerability --- config/initializers/new_framework_defaults_7_0.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/new_framework_defaults_7_0.rb b/config/initializers/new_framework_defaults_7_0.rb index d8fb474..883499e 100644 --- a/config/initializers/new_framework_defaults_7_0.rb +++ b/config/initializers/new_framework_defaults_7_0.rb @@ -92,7 +92,7 @@ # If you have configured the serializer elsewhere, you can remove this. # # See https://guides.rubyonrails.org/action_controller_overview.html#cookies for more information. -Rails.application.config.action_dispatch.cookies_serializer = :hybrid +Rails.application.config.action_dispatch.cookies_serializer = :json # Enable parameter wrapping for JSON. # Previously this was set in an initializer. It's fine to keep using that initializer if you've customized it.