Skip to content

Commit

Permalink
[server] Add allowed content CORS headers #1315 (#1316)
Browse files Browse the repository at this point in the history
add cors allowed headers
  • Loading branch information
michaelvlach authored Oct 20, 2024
1 parent 35e80ae commit 74bab00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions agdb_server/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ pub(crate) fn app(

let cors = CorsLayer::new()
.allow_methods([Method::GET, Method::POST, Method::PUT, Method::DELETE])
.allow_headers(tower_http::cors::Any)
.allow_origin(tower_http::cors::Any);

let router = Router::new()
Expand Down

0 comments on commit 74bab00

Please sign in to comment.