Skip to content

Commit

Permalink
config: fix setDefaults func
Browse files Browse the repository at this point in the history
  • Loading branch information
potsables committed Mar 16, 2019
1 parent ce1229a commit 7b182b2
Showing 1 changed file with 2 additions and 2 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"}
}
}

0 comments on commit 7b182b2

Please sign in to comment.