Try adding --rpc-cors all
. If you are running in --dev
mode the default is to allow all origins.
If you view the node executable help (i.e. ./target/release/node-template --help
) the output includes:
--rpc-cors <ORIGINS>
Specify browser Origins allowed to access the HTTP & WS RPC servers.
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> origins. When running in --dev mode the default
is to allow all origins.
--rpc-cors all
. If you are running in--dev
mode the default is to allow all origins.-rpc-cors all
worked, many thanks!