Enable forgery protection in ActionController
We were manually adding forgery protection to all our controllers, but in Rails 5.2 there's an option (enabled by default for new applications) which adds this protection to all controllers.
This commit is contained in:
@@ -7,7 +7,6 @@ class ApplicationController < ActionController::Base
|
||||
include AccessDeniedHandler
|
||||
|
||||
default_form_builder ConsulFormBuilder
|
||||
protect_from_forgery with: :exception
|
||||
|
||||
before_action :authenticate_http_basic, if: :http_basic_auth_site?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user