I'm running a parity peer connected to a custom blockchain (PoA), but I can't send a transaction, nor see the list of transactions of my account. I get the following errors (see error screenshot):
- No 'Access-Control-Allow-Origin' header is present on the requested resource.
- 406
- getTransactions TypeError: Failed to fetch
The errors points to a CORS problem, but all configurations I tried for cors ("all"
, "null"
, "*"
, "none"
, "http://example.com:8540"
) led to the same result. I get the same result both when running the peer locally and when running it remotely accessing the GUI from my pc. All listed ports are opened in the firewall. Chrome extensions are disabled; tried also in incognito mode. I also tried adding the command line option --unsafe-expose
to no avail.
Here is my toml on the remote machine (running Ubuntu):
[parity]
chain = "pcplExternal.json"
base_path = "/home/mike/parity"
[network]
port = 30303
[rpc]
hosts = ["all"]
port = 8545
interface = "0.0.0.0"
cors =["all"]
apis = ["web3", "eth", "net", "personal", "parity", "parity_set", "traces","rpc", "parity_accounts"]
[ui]
force = true
port = 8540
interface = "0.0.0.0"
path = "/home/mike/parity/signer"
[websockets]
origins = ["all"]
apis = ["web3", "eth", "pubsub", "net", "parity", "parity_pubsub", "traces", "rpc", "shh", "shh_pubsub", "personal", "signer"]
hosts = ["all"]
port = 8450
interface = "0.0.0.0"
Any idea what goes wrong?