Skip to content

Commit

Permalink
🔨 cors origin is cloned and passed to allow origin
Browse files Browse the repository at this point in the history
  • Loading branch information
Vimal-Kumar-V committed Feb 25, 2024
1 parent b7e3d36 commit e745b5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/libs/cerium/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl App {
let x_request_id = HeaderName::from_static("x-request-id");
let cors = CorsLayer::new()
.allow_methods([Method::GET, Method::POST])
.allow_origin(&self.cli.env().await.cors_allowed_origin);
.allow_origin(self.cli.env().await.cors_allowed_origin.clone());
let router = router
// .with_state(self.app_state())
.layer(SetRequestIdLayer::new(
Expand Down

0 comments on commit e745b5d

Please sign in to comment.