Skip to content

Commit

Permalink
Allow contracts ui cors origin (#52)
Browse files Browse the repository at this point in the history
Allow CORS origin `https://contracts-ui.substrate.io/`.
Others are the same as before.
  • Loading branch information
shunsukew authored Dec 15, 2022
1 parent 30627f5 commit 9d9ea02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/cli/src/commands/node/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ export class StartNode extends Command {

const config = await getSwankyConfig();
// run persistent mode by default. non-persistent mode in case flag is provided.
await execa.command(`${config.node.localPath} ${flags.tmp ? "--dev" : ""}`, {
await execa.command(`${config.node.localPath} \
--rpc-cors http://localhost:*,http://127.0.0.1:*,https://localhost:*,https://127.0.0.1:*,https://polkadot.js.org,https://contracts-ui.substrate.io/ \
${flags.tmp ? "--dev" : ""}`, {
stdio: "inherit",
});

Expand Down

0 comments on commit 9d9ea02

Please sign in to comment.