From 450fa96ce9aa9e8e9f1761c86c2a0ebf92a0a045 Mon Sep 17 00:00:00 2001 From: "Aleksandar N. Kostadinov" Date: Fri, 13 Sep 2024 16:17:52 +0300 Subject: [PATCH] allow disabling tenant id checking related to THREESCALE-10686 --- config/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/application.rb b/config/application.rb index 9c6b2f219a..613d71b24e 100644 --- a/config/application.rb +++ b/config/application.rb @@ -268,7 +268,7 @@ def cache_store_config require 'three_scale/middleware/multitenant' require 'three_scale/middleware/cors' - config.middleware.use ThreeScale::Middleware::Multitenant, :tenant_id + config.middleware.use ThreeScale::Middleware::Multitenant, :tenant_id unless ENV["DEBUG_DISABLE_TENANT_CHECK"] == "1" config.middleware.insert_before Rack::Runtime, Rack::UTF8Sanitizer config.middleware.insert_before Rack::Runtime, Rack::XServedBy # we can pass hashed hostname as parameter config.middleware.insert_before 0, ThreeScale::Middleware::Cors if config.three_scale.cors.enabled