Skip to content

Commit 2a5e648

Browse files
Enable CSRF Protection protect
1 parent d8e1d44 commit 2a5e648

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

instrumentation/action_pack/test/test_helpers/controllers/example_controller.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
class ExampleController < ActionController::Base
88
include ::Rails.application.routes.url_helpers
99

10+
# Enable CSRF Protection
11+
protect_from_forgery with: :exception
12+
1013
def ok
1114
render plain: 'actually ok'
1215
end

0 commit comments

Comments
 (0)