4

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:

4

The solution was to run parity with the following option.

parity --jsonrpc-hosts "all"

This was alluded to here.

  • It takes 2 days :) – nu everest Apr 20 '17 at 21:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.