Module: SpreeCmCommissioner::LoadTestBypassable

Extended by:
ActiveSupport::Concern
Included in:
Spree::Api::V2::Storefront::DraftOrdersController
Defined in:
app/controllers/concerns/spree_cm_commissioner/load_test_bypassable.rb

Overview

Sets Current.load_test_bypass when the request carries the correct X-Request-Verify secret, so anti-abuse services (e.g. InventoryHolds::ValidateLimits) can skip their checks for trusted load tests. No-op unless LOAD_TEST_BYPASS_KEY is set. Include in any controller that can trigger such a check.