Skip to content

Commit

Permalink
bugfix: remove allow_any_header() to fix cors issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cdxker committed Oct 2, 2024
1 parent d65ede3 commit 20c3241
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,6 @@ pub fn main() -> std::io::Result<()> {
App::new()
.wrap(
Cors::permissive()
.allow_any_header()
)
.app_data(PayloadConfig::new(134200000))
.wrap(middleware::json_middleware::JsonMiddlewareFactory)
Expand Down

0 comments on commit 20c3241

Please sign in to comment.