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(cors): expose all headers set by application in `access-control-expose-headers` header value (#6877)

Sanchith Hegde9c3547fa8dd5
diff --git a/crates/router/src/cors.rs b/crates/router/src/cors.rs
index 21293301b9..849121857b 100644
--- a/crates/router/src/cors.rs
+++ b/crates/router/src/cors.rs
@@ -8,6 +8,7 @@ pub fn cors(config: settings::CorsSettings) -> actix_cors::Cors {
let mut cors = actix_cors::Cors::default()
.allowed_methods(allowed_methods)
.allow_any_header()
+ .expose_any_header()
.max_age(config.max_age);
if config.wildcard_origin {