mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 13:44:47 +02:00
comment out headers
This commit is contained in:
parent
d581d36364
commit
7f0aae23f1
1 changed files with 2 additions and 2 deletions
|
@ -116,8 +116,8 @@ module Repp
|
||||||
def webclient_request?
|
def webclient_request?
|
||||||
return if Rails.env.test?
|
return if Rails.env.test?
|
||||||
|
|
||||||
header = request.headers['AccreditationToken']
|
# header = request.headers['AccreditationToken']
|
||||||
return if header == ENV['accreditation_secret']
|
# return if header == ENV['accreditation_secret']
|
||||||
|
|
||||||
ENV['webclient_ips'].split(',').map(&:strip).include?(request.ip)
|
ENV['webclient_ips'].split(',').map(&:strip).include?(request.ip)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue