Skip to content

Commit

Permalink
allow disabling tenant id checking
Browse files Browse the repository at this point in the history
related to THREESCALE-10686
  • Loading branch information
akostadinov committed Sep 13, 2024
1 parent a134289 commit 450fa96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 450fa96

Please sign in to comment.