fix: content-type for cors
This commit is contained in:
parent
6b88b34a95
commit
4d7ef092fb
1 changed files with 1 additions and 0 deletions
|
@ -397,6 +397,7 @@ async fn main() -> Result<()> {
|
|||
*allowed_origin == "*" || origin == allowed_origin
|
||||
})
|
||||
})
|
||||
.allowed_header("content-type")
|
||||
.allow_any_method();
|
||||
|
||||
let app = App::new()
|
||||
|
|
Loading…
Reference in a new issue