🛠️ fix: add code to prevent csrf attacks using cors (#172)
This commit is contained in:
parent
5b4e7c75c0
commit
bef8956da6
3 changed files with 30 additions and 1 deletions
16
Cargo.lock
generated
16
Cargo.lock
generated
|
@ -19,6 +19,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 1.11.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "actix-files"
|
||||
version = "0.6.2"
|
||||
|
@ -3520,6 +3535,7 @@ dependencies = [
|
|||
name = "websurfx"
|
||||
version = "0.15.3"
|
||||
dependencies = [
|
||||
"actix-cors",
|
||||
"actix-files",
|
||||
"actix-web",
|
||||
"async-trait",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue