Update CORS configuration to allow all origins
This commit is contained in:
parent
ce3ee9e9dc
commit
00d9d90a41
1 changed files with 2 additions and 1 deletions
3
main.go
3
main.go
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue