Skip to content

Commit

Permalink
fix: set CORS to any to accept RPC calls from web-based apps
Browse files Browse the repository at this point in the history
  • Loading branch information
yangby-cryptape committed Sep 29, 2023
1 parent 71f5bad commit 49014d7
Show file tree
Hide file tree
Showing 4 changed files with 174 additions and 16 deletions.
177 changes: 162 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion common/apm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ arc-swap = "1.6"
axum = "0.6"
beef = "0.5"
derive_more = "0.99"
hyper = { version = "0.14", features = ["http1", "server"] }
lazy_static = "1.4"
log = "0.4"
minstant = "0.1"
Expand Down
3 changes: 3 additions & 0 deletions core/api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ ckb-jsonrpc-types = "0.111"
ckb-traits = "0.111"
ckb-types = "0.111"
jsonrpsee = { version = "0.20", features = ["macros", "server"] }
hyper = "0.14"
log = "0.4"
parking_lot = "0.12"
pprof = { version = "0.11", features = ["prost-codec"], optional = true }
rlp = "0.5"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
strum = "0.25"
tower = "0.4"
tower-http = { version = "0.4", features = ["full"] }

common-apm = { path = "../../common/apm" }
common-config-parser = { path = "../../common/config-parser" }
Expand Down
Loading

0 comments on commit 49014d7

Please sign in to comment.