fix: content-type for cors

feat/type-attributes
Tomáš Mládek 2023-05-27 16:27:05 +02:00
parent 6b88b34a95
commit 4d7ef092fb
1 changed files with 1 additions and 0 deletions

View File

@ -397,6 +397,7 @@ async fn main() -> Result<()> {
*allowed_origin == "*" || origin == allowed_origin
})
})
.allowed_header("content-type")
.allow_any_method();
let app = App::new()