Add better cors for core

This commit is contained in:
Tobias Reisinger 2023-11-24 01:10:33 +01:00
parent 32c75ad73a
commit 9f64075f5a
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
5 changed files with 39 additions and 7 deletions

16
Cargo.lock generated
View file

@ -44,6 +44,21 @@ dependencies = [
"tracing",
]
[[package]]
name = "actix-cors"
version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b340e9cfa5b08690aae90fb61beb44e9b06f44fe3d0f93781aaa58cfba86245e"
dependencies = [
"actix-utils",
"actix-web",
"derive_more",
"futures-util",
"log",
"once_cell",
"smallvec",
]
[[package]]
name = "actix-http"
version = "3.4.0"
@ -862,6 +877,7 @@ name = "emgauwa-core"
version = "0.5.0"
dependencies = [
"actix",
"actix-cors",
"actix-web",
"actix-web-actors",
"chrono",