Skip to content

Commit

Permalink
post-refactor, cors flag was not being used
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Sep 6, 2023
1 parent 15b0e50 commit 7bb9666
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/relayer/cmd/flags/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,6 @@ var (
}
)

// optional
var (
CORSOrigins = &cli.StringFlag{
Name: "http.corsOrigins",
Usage: "Comma-delinated list of cors origins",
Required: false,
Category: commonCategory,
}
)

// All common flags.
var CommonFlags = []cli.Flag{
// required
Expand Down
8 changes: 8 additions & 0 deletions packages/relayer/cmd/flags/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ var (
Value: 4102,
EnvVars: []string{"HTTP_PORT"},
}
CORSOrigins = &cli.StringFlag{
Name: "http.corsOrigins",
Usage: "Comma-delinated list of cors origins",
Required: false,
Value: "*",
Category: commonCategory,
}
)

var IndexerFlags = MergeFlags(CommonFlags, []cli.Flag{
Expand All @@ -80,4 +87,5 @@ var IndexerFlags = MergeFlags(CommonFlags, []cli.Flag{
SubscriptionBackoff,
SyncMode,
WatchMode,
CORSOrigins,
})

0 comments on commit 7bb9666

Please sign in to comment.