Skip to content

Commit

Permalink
comment out headers
Browse files Browse the repository at this point in the history
  • Loading branch information
olegphenomenon committed Jan 8, 2022
1 parent d581d36 commit 7f0aae2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/repp/v1/base_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ def check_ip_restriction
def webclient_request?
return if Rails.env.test?

header = request.headers['AccreditationToken']
return if header == ENV['accreditation_secret']
# header = request.headers['AccreditationToken']
# return if header == ENV['accreditation_secret']

ENV['webclient_ips'].split(',').map(&:strip).include?(request.ip)
end
Expand Down

0 comments on commit 7f0aae2

Please sign in to comment.