1
0
Fork 0

Prepend forgery protection

This commit is contained in:
Alex Kotov 2018-12-01 06:39:26 +05:00
parent 37d62544fd
commit 3d612c74e0
No known key found for this signature in database
GPG key ID: 4E831250F47DE154

View file

@ -5,7 +5,7 @@ class ApplicationController < ActionController::Base
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_policy_scoped, only: :index