From 7b182b23aa92b22c15a9a27e961103a460d9f970 Mon Sep 17 00:00:00 2001 From: potsables Date: Sat, 16 Mar 2019 02:42:00 -0700 Subject: [PATCH] config: fix setDefaults func --- config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.go b/config.go index 60059c3..6d9268a 100644 --- a/config.go +++ b/config.go @@ -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"} } }