Skip to content

Commit

Permalink
Merge pull request #26 from RTradeLtd/fix/typo
Browse files Browse the repository at this point in the history
Fix Typos In CORS Configuration
  • Loading branch information
postables authored Mar 22, 2019
2 parents b0ee70d + 7b182b2 commit 8610ac9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (t *TemporalConfig) setDefaults() {
if t.LogDir == "" {
t.LogDir = "/var/log/temporal/"
}
if len(t.API.Connection.CORS.AllowedOrigin) == 0 {
t.API.Connection.CORS.AllowedOrigin = []string{"temporal.cloud", "backup.temporal.cloud"}
if len(t.API.Connection.CORS.AllowedOrigins) == 0 {
t.API.Connection.CORS.AllowedOrigins = []string{"temporal.cloud", "backup.temporal.cloud"}
}
}
4 changes: 2 additions & 2 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ type API struct {
Port string `json:"port"`
} `json:"prometheus"`
CORS struct {
AllowedOrigin []string `json:"allowed_origins"`
} `json:"cords"`
AllowedOrigins []string `json:"allowed_origins"`
} `json:"cors"`
// define the maximum number of people allowed to connect to the API
Limit string `json:"limit"`
} `json:"connection"`
Expand Down

0 comments on commit 8610ac9

Please sign in to comment.