mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 16:17:59 +00:00
Disable CORS when running in --dev (#2291)
* Disable cors in dev mode, * Whitelist substrate-ui. * Fix build. * Update docs.
This commit is contained in:
committed by
Bastian Köcher
parent
47c1b4b26e
commit
a6cbc965a0
@@ -332,7 +332,8 @@ pub struct RunCmd {
|
||||
/// Specify browser Origins allowed to access the HTTP & WS RPC servers.
|
||||
/// It's a comma-separated list of origins (protocol://domain or special `null` value).
|
||||
/// Value of `all` will disable origin validation.
|
||||
/// Default is to allow localhost and https://polkadot.js.org origin.
|
||||
/// Default is to allow localhost, https://polkadot.js.org and https://substrate-ui.parity.io origins.
|
||||
/// When running in --dev mode the default is to allow all origins.
|
||||
#[structopt(long = "rpc-cors", value_name = "ORIGINS", parse(try_from_str = "parse_cors"))]
|
||||
pub rpc_cors: Option<Option<Vec<String>>>,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user