I setup an ubuntu test server in the cloud with parity installed. My desire is to publicly expose the parity RPC service on port 8545 for testing purposes. Currently, I am ignoring whether this is safe or not.
The parity config.toml file is shown below. When I navigate to xxx.xxx.xxx.xxx:8545 in the browser I see the following message:
Provided Host header is not whitelisted.
I was expecting instead to see Used HTTP Method is not allowed. POST or OPTIONS is required
. As a sanity check if I turn parity off I get a page not found error.
config.toml
[rpc]
# Allows Cross-Origin Requests from domain '*'.
interface = "all"
cors = "*"
# Allow connections only using specified addresses.
hosts = ["", "*"]
Related: