Update CORS configuration to allow all origins

This commit is contained in:
Mo Tarbin 2024-08-10 00:24:48 -04:00
parent ce3ee9e9dc
commit 00d9d90a41

View file

@ -114,7 +114,8 @@ func newServer(lc fx.Lifecycle, cfg *config.Config, db *gorm.DB, notifier *notif
} }
config := cors.DefaultConfig() config := cors.DefaultConfig()
if cfg.IsDoneTickDotCom { if cfg.IsDoneTickDotCom {
config.AllowOrigins = cfg.Server.CorsAllowOrigins // config.AllowOrigins = cfg.Server.CorsAllowOrigins
config.AllowAllOrigins = true
} else { } else {
config.AllowAllOrigins = true config.AllowAllOrigins = true
} }