Skip to content

Commit

Permalink
fix: explicitly allow OPTIONS requests on api routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodus committed Aug 28, 2023
1 parent 7a467dc commit 2585941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graph-gateway/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ async fn main() {
CorsLayer::new()
.allow_origin(cors::Any)
.allow_headers(cors::Any)
.allow_methods([http::Method::POST]),
.allow_methods([http::Method::OPTIONS, http::Method::POST]),
)
.layer(middleware::from_fn(client_query::legacy_auth_adapter)),
);
Expand Down

0 comments on commit 2585941

Please sign in to comment.