Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/request_forgery_protection.rb')
-rw-r--r--lib/gitlab/request_forgery_protection.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/gitlab/request_forgery_protection.rb b/lib/gitlab/request_forgery_protection.rb
index b1e478093d3..79562a8223b 100644
--- a/lib/gitlab/request_forgery_protection.rb
+++ b/lib/gitlab/request_forgery_protection.rb
@@ -9,14 +9,6 @@ module Gitlab
class Controller < ActionController::Base
protect_from_forgery with: :exception, prepend: true
- rescue_from ActionController::InvalidAuthenticityToken do |e|
- logger.warn "This CSRF token verification failure is handled internally by `GitLab::RequestForgeryProtection`"
- logger.warn "Unlike the logs may suggest, this does not result in an actual 422 response to the user"
- logger.warn "For API requests, the only effect is that `current_user` will be `nil` for the duration of the request"
-
- raise e
- end
-
def index
head :ok
end