mirror of
https://github.com/embarklabs/dreddit-unicef-surge-2019.git
synced 2025-02-19 17:48:05 +00:00
add CORS for CRA port 3000
This commit is contained in:
parent
935d99c83f
commit
910884c6d5
@ -4,10 +4,16 @@ module.exports = {
|
|||||||
enabled: true,
|
enabled: true,
|
||||||
rpcHost: "localhost", // HTTP-RPC server listening interface (default: "localhost")
|
rpcHost: "localhost", // HTTP-RPC server listening interface (default: "localhost")
|
||||||
rpcPort: 8545, // HTTP-RPC server listening port (default: 8545)
|
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
|
// When set to "auto", Embark will automatically set the cors to the address of the webserver
|
||||||
wsRPC: true, // Enable the WS-RPC server
|
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
|
// 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")
|
wsHost: "localhost", // WS-RPC server listening interface (default: "localhost")
|
||||||
wsPort: 8546 // WS-RPC server listening port (default: 8546)
|
wsPort: 8546 // WS-RPC server listening port (default: 8546)
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
"react-scripts": "2.1.8"
|
"react-scripts": "2.1.8"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "PORT=3001 react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "embark test",
|
"test": "embark test",
|
||||||
"eject": "react-scripts eject"
|
"eject": "react-scripts eject"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user