Skip to content

Commit

Permalink
allow methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi-sawlani-yral committed Jan 31, 2025
1 parent 0bb0ef9 commit afec2e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ssr/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ async fn main() {
.layer(
CorsLayer::new()
.allow_headers(Any)
.allow_methods(Any)
.allow_origin(AllowOrigin::predicate(|origin, _| {
if let Ok(host) = origin.to_str() {
is_host_or_origin_from_preview_domain(host) || host == "yral.com"
Expand Down

0 comments on commit afec2e2

Please sign in to comment.