update cors
This commit is contained in:
parent
af8f6e0dca
commit
ef024da0a9
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue