From ef024da0a96ba0fd535e73827aa5f1f2b2df21af Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 6 Nov 2018 07:53:51 -0500 Subject: [PATCH] update cors --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 675905c..fdd273a 100644 --- a/src/index.js +++ b/src/index.js @@ -30,7 +30,7 @@ function createStatusPayload() { (async () => { let web3 = new Web3(); - web3.setProvider(new Web3.providers.WebsocketProvider('ws://localhost:8546', {headers: {Origin: "http://localhost:8080"}})); + web3.setProvider(new Web3.providers.WebsocketProvider('ws://localhost:8546', {headers: {Origin: "statusjs"}})); await web3.shh.setMinPoW(POW_TARGET);