From 2714219b82bcd7adb9e7bc89b6764e796969d448 Mon Sep 17 00:00:00 2001 From: NangKhatMang Date: Thu, 28 Aug 2025 14:28:43 +0630 Subject: [PATCH] add: request host log --- app/controllers/api/v1/statuses_controller.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/controllers/api/v1/statuses_controller.rb b/app/controllers/api/v1/statuses_controller.rb index 11ababca..5fea9fc1 100644 --- a/app/controllers/api/v1/statuses_controller.rb +++ b/app/controllers/api/v1/statuses_controller.rb @@ -24,9 +24,10 @@ def boost_post def whitelist_domains allowed_domains = ["mo-me.social"] - unless allowed_domains.include?(request.host) - render_error("Request domain not allowed", :forbidden) - end + Rails.logger.info("#{'>'*10}Request host: #{request.host} #{'<'*10}") + # unless allowed_domains.include?(request.host) + # render_error("Request domain not allowed", :forbidden) + # end end def fetch_oauth_token(username, user_domain)