Class: Gitlab::RequestForgeryProtection::Controller

Inherits:
ActionController::Base
  • Object
show all
Defined in:
lib/gitlab/request_forgery_protection.rb

Overview

rubocop:disable Rails/ApplicationController

Instance Method Summary collapse

Constructor Details

#initializeController

Returns a new instance of Controller.



13
14
15
16
17
18
19
# File 'lib/gitlab/request_forgery_protection.rb', line 13

def initialize
  super

  # Squelch noisy and unnecessary "Can't verify CSRF token authenticity." messages.
  # X-Csrf-Token is only one authentication mechanism for API helpers.
  self.logger = ActiveSupport::Logger.new(File::NULL)
end

Instance Method Details

#indexObject



21
22
23
# File 'lib/gitlab/request_forgery_protection.rb', line 21

def index
  head :ok
end