Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix(middleware): inlcude `x-request-id` header in `access-control-expose-headers` header value (#1673)

Sanchith Hegdeb1ae981f8269
diff --git a/crates/router/src/lib.rs b/crates/router/src/lib.rs
index 34550a3a52..c41898b5ca 100644
--- a/crates/router/src/lib.rs
+++ b/crates/router/src/lib.rs
@@ -222,7 +222,7 @@ pub fn get_application_builder(
errors::error_handlers::custom_error_handlers,
))
.wrap(middleware::default_response_headers())
- .wrap(cors::cors())
.wrap(middleware::RequestId)
+ .wrap(cors::cors())
.wrap(router_env::tracing_actix_web::TracingLogger::default())
}