Skip to content

Commit

Permalink
fix: move tracking middleware before host authorization
Browse files Browse the repository at this point in the history
closes #2415
  • Loading branch information
adamcooke committed Jan 31, 2024
1 parent 71f51db commit 49cceaa
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 @@ -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)

Expand Down

0 comments on commit 49cceaa

Please sign in to comment.