• L
    Protect from forgery by default · ec4a8369
    Lisa Ugray 提交于
    Rather than protecting from forgery in the generated
    ApplicationController, add it to ActionController::Base by config. This
    configuration defaults to false to support older versions which have
    removed it from their ApplicationController, but is set to true for
    Rails 5.2.
    ec4a8369
request_forgery_protection.rb 16.7 KB