diff --git a/embarkConfig/blockchain.js b/embarkConfig/blockchain.js index ba5176c..ada23e1 100644 --- a/embarkConfig/blockchain.js +++ b/embarkConfig/blockchain.js @@ -4,10 +4,16 @@ module.exports = { enabled: true, rpcHost: "localhost", // HTTP-RPC server listening interface (default: "localhost") rpcPort: 8545, // HTTP-RPC server listening port (default: 8545) - rpcCorsDomain: "auto", // Comma separated list of domains from which to accept cross origin requests (browser enforced) + rpcCorsDomain: { + auto: true, + additionalCors: ["http://localhost:3000"] + }, // Comma separated list of domains from which to accept cross origin requests (browser enforced) // When set to "auto", Embark will automatically set the cors to the address of the webserver wsRPC: true, // Enable the WS-RPC server - wsOrigins: "auto", // Origins from which to accept websockets requests + wsOrigins: { + auto: true, + additionalCors: ["http://localhost:3000"] + }, // Origins from which to accept websockets requests // When set to "auto", Embark will automatically set the cors to the address of the webserver wsHost: "localhost", // WS-RPC server listening interface (default: "localhost") wsPort: 8546 // WS-RPC server listening port (default: 8546) diff --git a/package.json b/package.json index d6def1a..4754823 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "react-scripts": "2.1.8" }, "scripts": { - "start": "PORT=3001 react-scripts start", + "start": "react-scripts start", "build": "react-scripts build", "test": "embark test", "eject": "react-scripts eject"