Skip to content

Commit 557d5ed

Browse files
committed
Enable new default: CSRF origin-check mitigation
1 parent 88e91d4 commit 557d5ed

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

config/initializers/new_framework_defaults.rb

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
#
77
# Read the Guide for Upgrading Ruby on Rails for more info on each option.
88

9-
# Enable origin-checking CSRF mitigation. Previous versions had false.
10-
Rails.application.config.action_controller.forgery_protection_origin_check = false
11-
129
# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`.
1310
# Previous versions had false.
1411
ActiveSupport.to_time_preserves_timezone = false

0 commit comments

Comments
 (0)