Skip to content

Commit

Permalink
Merge pull request #3888 from akostadinov/tenant_id
Browse files Browse the repository at this point in the history
allow disabling tenant id checking
  • Loading branch information
akostadinov authored Sep 13, 2024
2 parents a134289 + 450fa96 commit f95cca5
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 f95cca5

Please sign in to comment.