Skip to content

Commit

Permalink
fix(cors): expose all headers set by application in `access-control-e…
Browse files Browse the repository at this point in the history
…xpose-headers` header value
  • Loading branch information
SanchithHegde committed Dec 18, 2024
1 parent db51ec4 commit 10876ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/router/src/cors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 10876ff

Please sign in to comment.