From 49cceaa6ca862965448041279fc439ecba163ff8 Mon Sep 17 00:00:00 2001 From: Adam Cooke Date: Wed, 31 Jan 2024 17:55:35 +0000 Subject: [PATCH] fix: move tracking middleware before host authorization closes #2415 --- config/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/application.rb b/config/application.rb index 463f1bc5..33615924 100644 --- a/config/application.rb +++ b/config/application.rb @@ -34,7 +34,7 @@ class Application < Rails::Application # Load the tracking server middleware require "postal/tracking_middleware" - config.middleware.use Postal::TrackingMiddleware + config.middleware.insert_before ActionDispatch::HostAuthorization, Postal::TrackingMiddleware config.logger = Postal.logger_for(:rails)