From ef5a9577d7b15d0842ed03500b1e500bdbb49a69 Mon Sep 17 00:00:00 2001 From: Stephen <519327+stevieing@users.noreply.github.com> Date: Tue, 16 Jul 2024 09:59:33 +0100 Subject: [PATCH] chore: Disable CSRF protection in application. --- config/application.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/application.rb b/config/application.rb index 0a5d44f0..d1407928 100644 --- a/config/application.rb +++ b/config/application.rb @@ -34,5 +34,7 @@ class Application < Rails::Application config.active_record.belongs_to_required_by_default = true config.active_record.legacy_connection_handling = false + + config.action_controller.default_protect_from_forgery = false end end