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 228c3c8c29..97fb76018b 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