in this doc it says the following:
By default, the node will refuse to start if you try to expose an RPC interface and run a validator node at the same time. The --unsafe-* flags allow you to suppress this security measure. Exposing RPC interfaces can open up a huge surface of attacks and has to be carefully reviewed.
however when i start a local chain using the following command:
./target/release/node-template \
--base-path /tmp/alice \
--chain local \
--alice \
--port 30333 \
--ws-port 9945 \
--rpc-port 9933 \
--node-key 0000000000000000000000000000000000000000000000000000000000000001 \
--telemetry-url "wss://telemetry.polkadot.io/submit/ 0" \
--validator
1- it started with no problems, its supposed to refuse to start since its both a validator and is exposing an RPC port but it didnt, why?
2- how to modify the allowed origins?
3- the doc also said the following:
There are quite a few RPC methods that you can use to control the node's behavior, but you should avoid exposing. For example, you should not expose the following RPC methods:
submit_extrinsic - allows submitting transactions to local pool.
however im able to submit extrinsics, the extrinsic gets passed to the node and it gets added to the pool.