diff options
author | 2024-08-10 00:24:48 -0400 | |
---|---|---|
committer | 2024-08-10 00:24:48 -0400 | |
commit | 00d9d90a41a976bcb43b53dcbead09c1a0c5385a (patch) | |
tree | 833b23de0c54b2f95d4941dea5afed16bf9edfe0 | |
parent | ce3ee9e9dcb59138d830b52c26dc584883a7fe1f (diff) | |
download | donetick-00d9d90a41a976bcb43b53dcbead09c1a0c5385a.tar.gz donetick-00d9d90a41a976bcb43b53dcbead09c1a0c5385a.tar.bz2 donetick-00d9d90a41a976bcb43b53dcbead09c1a0c5385a.zip |
Update CORS configuration to allow all origins
Diffstat (limited to '')
-rw-r--r-- | main.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -114,7 +114,8 @@ func newServer(lc fx.Lifecycle, cfg *config.Config, db *gorm.DB, notifier *notif } config := cors.DefaultConfig() if cfg.IsDoneTickDotCom { - config.AllowOrigins = cfg.Server.CorsAllowOrigins + // config.AllowOrigins = cfg.Server.CorsAllowOrigins + config.AllowAllOrigins = true } else { config.AllowAllOrigins = true } |