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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix: allow all headers on cors (#3653)
Kartikeya Hegde64bf81529424
diff --git a/crates/router/src/cors.rs b/crates/router/src/cors.rsindex 9baa4484ee..21293301b9 100644--- a/crates/router/src/cors.rs+++ b/crates/router/src/cors.rs@@ -7,6 +7,7 @@ pub fn cors(config: settings::CorsSettings) -> actix_cors::Cors {let mut cors = actix_cors::Cors::default().allowed_methods(allowed_methods)+ .allow_any_header().max_age(config.max_age);if config.wildcard_origin {@@ -15,6 +16,8 @@ pub fn cors(config: settings::CorsSettings) -> actix_cors::Cors {for origin in &config.origins {cors = cors.allowed_origin(origin);}+ // Only allow this in case if it's not wildcard origins. ref: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials+ cors = cors.supports_credentials();}cors