From 2a5e648ed592d0f0021ff224f90c1581c57762c9 Mon Sep 17 00:00:00 2001 From: "Desai, Rhythm" Date: Tue, 28 May 2024 11:23:37 -0400 Subject: [PATCH] Enable CSRF Protection protect --- .../test/test_helpers/controllers/example_controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/instrumentation/action_pack/test/test_helpers/controllers/example_controller.rb b/instrumentation/action_pack/test/test_helpers/controllers/example_controller.rb index 228c3c8c2..97fb76018 100644 --- a/instrumentation/action_pack/test/test_helpers/controllers/example_controller.rb +++ b/instrumentation/action_pack/test/test_helpers/controllers/example_controller.rb @@ -7,6 +7,9 @@ class ExampleController < ActionController::Base include ::Rails.application.routes.url_helpers + # Enable CSRF Protection + protect_from_forgery with: :exception + def ok render plain: 'actually ok' end