Prepend forgery protection
This commit is contained in:
parent
37d62544fd
commit
3d612c74e0
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ class ApplicationController < ActionController::Base
|
||||||
|
|
||||||
before_action :set_raven_context
|
before_action :set_raven_context
|
||||||
|
|
||||||
protect_from_forgery with: :exception, unless: :json_request?
|
protect_from_forgery with: :exception, prepend: true, unless: :json_request?
|
||||||
|
|
||||||
after_action :verify_authorized, except: :index
|
after_action :verify_authorized, except: :index
|
||||||
after_action :verify_policy_scoped, only: :index
|
after_action :verify_policy_scoped, only: :index
|
||||||
|
|
Reference in a new issue