diff options
author | Toby Vincent <tobyv@tobyvin.dev> | 2024-04-15 14:56:44 -0500 |
---|---|---|
committer | Toby Vincent <tobyv@tobyvin.dev> | 2024-04-15 14:56:44 -0500 |
commit | 82d24f495fbdead1216e33daef6e024325099f21 (patch) | |
tree | 19fb0e42bab10a8e36054e850feaefacc9e8bc36 /src | |
parent | 49266fab5d12a63ea51708941ac15c286dfc4141 (diff) |
fix: remove unnecessary cors layer
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,4 +1,4 @@ -use tower_http::{cors::CorsLayer, trace::TraceLayer}; +use tower_http::trace::TraceLayer; pub use error::{Error, Result}; @@ -12,8 +12,6 @@ pub fn router() -> axum::Router<state::AppState> { axum::Router::new() .nest("/api", api::router()) .nest("/auth", auth::router()) - // TODO: do this correctly! - .layer(CorsLayer::permissive()) .layer(TraceLayer::new_for_http()) } |