From 7f0aae23f1c683358b581c5ead58c879d2d13b1a Mon Sep 17 00:00:00 2001 From: olegphenomenon Date: Sat, 8 Jan 2022 09:26:16 +0200 Subject: [PATCH 1/2] comment out headers --- app/controllers/repp/v1/base_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/repp/v1/base_controller.rb b/app/controllers/repp/v1/base_controller.rb index f23d0a24f3..14605c34ac 100644 --- a/app/controllers/repp/v1/base_controller.rb +++ b/app/controllers/repp/v1/base_controller.rb @@ -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 From 405475d1e21902dfbe02897f38f34fa501caf625 Mon Sep 17 00:00:00 2001 From: olegphenomenon Date: Sat, 8 Jan 2022 09:37:50 +0200 Subject: [PATCH 2/2] remove uneccesarry checking for header --- app/controllers/repp/v1/base_controller.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/controllers/repp/v1/base_controller.rb b/app/controllers/repp/v1/base_controller.rb index 14605c34ac..3e9ab57153 100644 --- a/app/controllers/repp/v1/base_controller.rb +++ b/app/controllers/repp/v1/base_controller.rb @@ -116,9 +116,6 @@ def check_ip_restriction def webclient_request? return if Rails.env.test? - # header = request.headers['AccreditationToken'] - # return if header == ENV['accreditation_secret'] - ENV['webclient_ips'].split(',').map(&:strip).include?(request.ip) end